Hi there
I am trying to work through a request in a survey123 form via connect. I have large form which leads to the user have roughly 23 options for to select from that they potentially could need to survey. They then choose the number of options they are surveying from this 23 and this populates a dynamic list for a select one queston that is embedded in a repeat, the user then select which one they are filling in for inside of the repeat and then go on to complete the survey for that factor. They then start the next repeat and choose a new factor to survey. This forms number of repeats is also limited to the number of chosen options
To try and fool proof it I want to either have it so that once an option in the select one inside of the repeat has been selected it is not able to be select again in any of the other repeats as they can only choose each option once.
Second option is to print a list next to the repeat listing which options they have chosen already inside of all of the repeats, so that if they select one more than once it will appear twice and be flagged to them as "you have a chosen an option more than once" / just to be visible for them to figure that out.
I am struggling getting either of these options set up and working due to the complexity of repeats and wondered if anyone had done anything simliar in their own forms before?
(Sadly I am unable to share the form)
All the best
-Ed
Hi Doug
Thank you for the quick response, I was wondering if I could pick your brains abit more on your code. Ive gone through existing threads and tried to figure out how it fits togeather and could be adapted for this scenario but struggling to get it to work (Screenshot below)
I also wanted to check that because the select_one being used in the repeat that I want this code to work on is dynamic (see second screenshot that is within the choice filter) that this will still work as intended?
Thanks in advance
-Ed
If you mean will it pull items off the list as you pick them, then no. No way to do that really that I have seen. Best I got is it makes a list as you go (using join) and then checks the current selection against that list. No more complicated than that.
Note you probably do not any of the xyz codes or unknown codes part. That is something we use to track plants that the crew does not know what it is. Then its easier.
Hi Doug
Thank you for confirming I thought that would be the case.
Regarding making a duplicate version of the dyanmic list and checking the select one values chosen against it, would allow for each selection in a different repeat to be checked, my main issue with code I have written so far is when it move onto new repeat it clears my check list with it
-Ed
It should not clear the list. Do you have a relevant or something on? If you can post or send the form I can look at it. Not seeing anything off in your images.