Restricted options under a repeat group derived from select multiple

Hi everyone. I have this specific question. Referring to the picture below.

There are 22 products in total. A set of questionnaires will be asked for each of the products chosen. The questions are all the same. However, options display for Question i105 is differ depending on the type of product chosen. For example, if Broiler is chosen, the options for questions i105 are fresh, frozen, both and live. If Tilapia is chosen, only fresh, frozen and both should be displayed.

I used select multiple for the type of the products. Follow with a repeat group where it coded the set of the questionnaires. How can I make it work to restrict the options in question i105 depend on the products chosen? I tried using choice filter, relevant and even creating another repeat group reflecting different categories in i105, but still unsuccessful. Really appreciate any suggestions to solve this problem.

Hi @saadiah_ghazali,

You could do the same (by making constraints during data entry) as outlined in the image below:

In the survey tab of your xlsform:

In the choices tab of your xlsform:
Image 2

Data entry screen as seen in Enketo:

Reference xlsform:
Constaint within Repeat Group.xls (39 KB)

Have a great day!

2 Likes

Hi @Kal_Lam,

Thank you very much for this insight. Really helpful!

1 Like