Hi all. I am expanding on a Survey123 form I've generated for our asset inspections team. They have assets that have multiple Groups of Components, where each Component needs to be inspected. To avoid users having to populate multiple repeats where there is more than one Group that is identical based on the Component material, quantity etc., I have an integer field (${numberGroups}) that asks users to enter the # of Groups, and a select_multiple field (${selectIdenticalGroups}) that asks users to select each Group that is identical.
For example, if an asset has 8 Groups of Components, and 4 Groups have identical components (e.g. Group #1, Group #2, Group #7 and Group #8), the user would tick these groups in ${selectIdenticalGroups}.
The issue I have is that for all assets, the maximum number of Groups is unknown (hence the need for Survey123). I want the maximum number of options for the select_multiple ${selectIdenticalGroups} to be equal to the ${numberGroups} field e.g:
Does anyone know how I can set perhaps a choice_filter on the choices tab to dynamically limit each of the choices for ${selectIdenticalGroups} based on ${numberGroups}? Thank you for your time!
Instead of checkboxes from a list, why not set a repeat of questions with a free-entry integer field? In your example, 1, 2, 7, and 8 would be entered as single answers within the repeat, rather than a single checkbox question.
If you're trying to nest that in a repeat (of multiple groups), then things are likely to be a bit messier.
Thanks for this, I do have nested repeats which would make things difficult. I will keep investigating.