Show 3 responses, at random, based on previous question | XM Community
Skip to main content

Hello!
I need some assistance with a survey I am programming. Ill give an example
Question 1: Which colours do you like?
Red, Blue, Green, Yellow, Black
Question 2: In particular, why do you like [ANSWER FROM Q1]?
For this second question, each answer from question 1 has a different list of sub-items. What we want to do is show Question 2 for up to 3 of the answers from question 1, at random. So if someone selected Red, Blue, Green, Yellow at Question 1, I want to show Q2 for 3 of Red, Blue, Green, Yellow.

I thought about using a randomiser, then branches, but this would allocate someone to all 5 answers in Q1 irrespective if they selected it or not. Does anyone have any tips?

Thanks,
Michael

Michael_Beevers You can use Loop & Merge to do this. Keep Q2 in a block with loop & merge set up as shown inthe image. Then pipe the L&M field in Q2 which will look somewhat like, "In particular, why do you like ${lm://Field/1}?". Make sure you randomize the loop and set it to present only 3 loops.
scrn2.JPG


Thanks for your comment! Can you do this if Q2 has different codeframes for each colour?


Leave a Reply