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!