Odk Question Loop

I have a multiselect survey answers I need to ask question group based on what is selected i.e
Question;
What crops do you grow?
MAIZE
BEANS
LEGUMES
SPINACH

User can select one or more upon selection I need the followup question group to follow, if he selected maize and beans should be

  1. WHAT SIZE OF MAIZE UNDER MAIZE
  2. WHAT SIZE OF LAND UNDER BEANS

If user selected 3 answers then this should reflect on the loop as the third question

You could make a repeat group with a count based on the count-selected(multi_select_question) of your multiselect question. Then use a selected-at(space_delimited_array, n) in the label of your repeat group question to display the corresponding selected crop name, when n is the repeat's index position(..)

Is it possible to do this on https://build.opendatakit.org form builder?

I think it's easier using XLS here is a similar topic and a sample form which should help you as well:

1 Like