Skip block if one dropdown question (in previous block) is empty. | XM Community
Skip to main content

Hi all,

I want the survay to skip block 3 if one question in block 1 is left empty.
The context is that one question is asking respondents to list their language(s) from a dropdown list. If they do not have 2nd (or 3rd, 4th) language(s), the survay should skip to another block.

If I will use branch logic, I’ll have to list all the dropdown list options (72 of them) for each block. So, I’m asking if there is a simpler way to: skip block if one question is not answer.

Thank you!

Try setting embedded data in your survey flow for the selected choice (from your dropdown question about their language), then branching if that embedded data field is empty or not empty. The embedded data would be something like ${q://QID55/ChoiceGroup/SelectedChoices}  where QID55 is replaced with the ID for your dropdown question. 

 

 


Hi @BashFN,

in addition to @lizb311 answer about “If they do not have 2nd (or 3rd, 4th) language(s), the survay should skip to another block.” - not sure if I understood it right, but if you only want to show the block if at least 2 languages were selected (and not just one), you could check if SelectedLang contains a comma (,) as the recode values would be separated by comma if there have been multiple values selected. 

Best
Christian


That’s a good point, @chackbusch ! That’d be a good way to check for multiple languages. 

If the original language question is set up as a “select all” style, then you could also add embedded data in the survey flow to get the count of items selected. That’d be ${q://QID55/SelectedChoicesCount} (again, updating the QID55 to whatever your QID is). Then you’d treat that as a number and be able to branch if that count is > 1


Thank you so much for the replies. 

@lizb311 your first reply worked just fine for me. I also had some other parts (questions) that need to be skipped in other blocks, so I used skip logic for those.

 

@chackbusch The questionnaire is prepared such that each language has its own block, but it’s a good info to know for the future.

Thanks again!


Leave a Reply