Multiple response question related

Dear All,
I have a group of questions that should be repeated for each choice that is selected from a pervious multiple response question.

for example
Which equipment are you assessing?

The group of questions should be linked to each choice are

Enter the power rating of this equipment in watts.
How many hours per day is this equipment used on average?
How often is this equipment used?

How can i do this

i build the following questions

Instead of having

relevant = count-selected(${equipment_type}) > 0

on your begin_repeat, add a new column with

repeat_count = count-selected(${equipment_type})

1 Like

Thanks for your response. I tired your solution but i still encounter a challenge in relation to the name of group… I mean i want each group to have the certain name of the choice selected for easier data entry and analysis. However, what i see is that the group takes all the names of the choices all together, which will be difficult for the data entry personel to know what to fill first and what second.

see the photo

Is there any chance for solution?

So you cant change the name of the overall repeat group itself for each iteration. What I would suggest would be to instead have a (regular) group immediately inside your repeat, and change the name of this sub-group’s title to reflect to current selected item being processed for that iteration.

Also, in order to get the label displayed for each selected item (ie “Sterilizers and autoclaves”) - as opposed to its underlying value (ie “ster_autoclave”) - you will need to use the jr:choice-name() function.

Have a look at the following form and adapt it to your needs:

RepeatFromSelect.xlsx (18.5 KB)

The selected-at() pulls out each of the selected item values, one per repeat iteration, as you are doing already. The jr:choice-name() then gets the label for that value. And the sub-group then displays this label this in its title.

Thank you very much dear. It works this way

Best Regards,

Mohammed

1 Like