I am trying to create a 'multiple' selection question where the follow on for each selection clicked presents a further question in this case a percentage option. In the 'relevant' column I have this expression:
${vegetation} = ’sphagnum’ (which works for a single selection).
Can I add several more options to the same expression? If so is there an example available or do I have to have each ground cover as a new question so it will cascade onto the percentage question.
It depends what you want to achieve. If you want to do something when at least one option from those you listed is selected then you should use or otherwise if you need all of them you need to use and.
Another thing is that if you use select_one question then you can do that like in your sample: ${vegetation} = ’sphagnum’
but if you use select_multiple your expression should be: selected(${vegetation}, 'sphagnum')
The last thing is that if you combine multiple elements with or/and it should be:
select_one: ${vegetation} = ’sphagnum or ${vegetation} = ’heather’
select multiple: selected(${vegetation}, 'sphagnum') or selected(${vegetation}, 'heather')
not like in your sample (you need to repeat your question name every time).
selected(${vegetation}, ‘sphagnum’) or selected(${vegetation}, ‘heather’) or selected(${vegetation}, ‘grass_not_molinia’) or selected(${vegetation}, ‘molinia’) or selected(${vegetation}, ‘sedges’) or selected(${vegetation}, ‘rush’) or selected(${vegetation}, ‘cotton_grass’) or selected(${vegetation}, ‘trees’) or selected(${vegetation}, ‘bare_ground’)
However this add each selected ground cover into the same percentage group.
Hmm I think like I focused to much on the expression itself and missed what you rally want to achieve...
Do you want that percentage question to appear for every single selected item in question one? (three times in the case from your screenshot)?
So you need something completly else. After your select_multiple question you need to crate a repeat_group with repeat_count = count-selected(${name_of_your_first_question})
inside that group you can add the question you want to be repeated and it will be repeated accordingle to the number of selected items in question one.