1. What is the problem? Be very detailed.
Made a questionnaire to collect information about trees. Each plot has different number of trees. E.g. Plot one, 6 trees (a, b,c,d,e and f), Plot two, 5 trees (a,b,c,d and e). We visit these trees on a weekly basis. Using the cascading selects I made lists of trees for each plots. After few months I realized that my team mates miss some trees. E.g. Plot 1 a, b,c,_,e and f= they missed tree 'd'). I want my field teams to collect data for all the trees
2. What app or server are you using and on what device and operating system? Include version numbers.
I am using ODK collect v1.27.2, connected to my google account.
5. Anything else we should know or have? If you have a test form or screenshots or logs, attach below. https://enketo.getodk.org/preview?form=https://xlsform.getodk.org/downloads/hcz5pvlu/ChittoorTrees.xml
Here is the link to the form that I am using.
Observation date*
Site name*
Site code*
Plot Information
Tree code* (is automatically generated but field teams miss some trees) I want make sure that they answer all the trees before they submit)
Hi @dicksonsamwel Thank you for your suggestion and when I tried your suggestion, but I get an error message saying "value not allowed" when I try to answer "tree_code". AnantapurTrees.xlsx (23.1 KB)
I am not an expert in computer and I made the form that I am using right now with the help of lot of searching in this forum.
No it still wouldn't be enough. position(..) returns numbers like 1,2,3 etc and you try to compare it with 1060-Cassia fistula or even 1060 if you drop the -scientific name, it will always return false.
Could you explain what your are trying to achieve with that constraint?
@Grzesiek2010 I want my team mates to collect data for all the species, they have missed tagged trees. If they miss one trees I will not get data of the same.
Just to assist here, refer to the previous threads, the constraint was originally used from the sample form that I provided. I provided the form to see the idea behind. So basically with that constraint, the user will be forced to select each select one item basing on their position and the repeat number, ensuring each item is selected.
@Grzesiek2010 thank you for your support but I am afraid it might lead to other complication, I would rather make sure to collect information for all the trees by keeping a hard copy of the check list of trees. Thanks again @dicksonsamwel and @Grzesiek2010
I have a suggestion for you. Since the loop is dynamic, you can make the form such that you have a defined loop number, depending on the trees. Since you have number of trees in the text, you can change it a bit to allow to fetch that number dynamically. So, instead of (10 trees) , you can change it to --10, so that to fetch it using substring-after function. That means the repeats will be added automatically. See the form AnantapurTrees (1).xlsx (34.0 KB)
After if you wish to check for duplicates and restrict it, check this thread