How to create a loop using a subset of a previous question's answer list? | XM Community
Skip to main content
Solved

How to create a loop using a subset of a previous question's answer list?

  • April 3, 2020
  • 1 reply
  • 24 views

Forum|alt.badge.img+6

I have a question with answer options A, B, C, D, E and None. How can I set up a loop that will only be asked of B, D and E if one or more of them were selected.
Q1 - respondent selects A, B and E.
Next question will be a loop that will ask for B and then E.

Best answer by TomG

Add a MC question with only B, D, and E on the next page. Add display logic to each choice to only display if selected in the previous question. Add a lot of padding to the top of the question to push it off the bottom of the page and use JS to click the next button. Base the loop off the displayed choices in the hidden MC question.

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • April 4, 2020

Add a MC question with only B, D, and E on the next page. Add display logic to each choice to only display if selected in the previous question. Add a lot of padding to the top of the question to push it off the bottom of the page and use JS to click the next button. Base the loop off the displayed choices in the hidden MC question.