Thanks for your feedback! So the reason why I’m using a “select_one” and a repeat cycle for the species registration instead of a “select_multiple” is that I want the user to insert some information about each registered species as it gets registered (e.g., is the species flowering? where in the plot was it found?). I realize the design of my form could be made simpler if I used a select_multiple instead, but I’m basically trying to re-create the workflow of an already-existing vegetation survey protocol.
I’ve uploaded an example of my form here below. As you can see, in my example I’ve incorporated three calculate-rows to combine and calculate the total species selected throughout the first repeat group (called “c3” in my example) using the method described in the following topic: “Restrict choices already selected from a repeat group”. I then use “c3” (or the total registered species) to (1) calculate how many times the next repeat cycle should be repeated, to (2) show the user which species have been register so far in the first repeat cycle, and (3) try create a choice_list of which species out of the complete species_list were selected in the first repeat cycle so that only these species are displayed in the second select_one. In my example, I’ve also changed the form to use an internal “example species list”, but in the final form, I’d list to refer to an external csv-list instead.
As of now, I get an error message trying to validate this form at (ODK - XLSForm Online) referring to the c3-row, but when I upload the form on kobotoolbox.org, I don’t get the error message. The first two uses of the “c3” calculate row (i.e., calculate number of repeat cycles, and display selected species) work fine. But the choice list does not work. Now, no options whatsoever are displayed in the “select_one” section of the second repeat cycle. As I mentioned in my initial topic thread, I’ve played around with this a bit and also tried e.g., creating a choice_list using join() instead of selected-at() where the registered species were actually displayed in the second “select_one” section, but then only as a long concatenated text string (i.e. “Species1 Species2 Species3”) and not as different options that could be selected.
Cheers!
Albin
vegetation_survey.xlsx (11.1 KB)