How to split the display of certain fields 50-50 within a Loop and Merge block? | XM Community
Skip to main content
Question

How to split the display of certain fields 50-50 within a Loop and Merge block?

  • February 13, 2025
  • 2 replies
  • 29 views

I currently have a multi-field loop and merge in a survey block. Field 1 is a scenario, and Field 2 and 3 are questions that are specific to that scenario. Participants are presented with scenarios in random order and then asked questions about it. I want to add another layer/branch of randomization so that the question in Field 2 is only shown to half the participants, and question in Field 3 is shown to the other half.

The group function in Survey Flow doesn’t work, as the questions in Field 2 and 3 are tied to the specific scenario, and I want participants to have a 50-50 mix of questions from Field 2 and 3 instead of only getting one type of question. 

Is there a way to randomize this without basing it on an explicit input from the participant?

2 replies

  • Level 4 ●●●●
  • 209 replies
  • February 17, 2025

Either you display 2 and 3, one at a time or add all necessary questions in both 2 and 3, then you can randomize so that, respondent will be able to see only one block with all necessary questions.


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 5932 replies
  • February 17, 2025

@Eng,

It would use a hidden multiple choice question at the beginning of the loop that uses advanced randomization to display one of the choices (Field2 or Field3) evenly presented. Have JS select whatever choice is displayed. Then used the selected choice in display logic to display the Field2 or Field3 question.

If the Field2 and Field3 questions are on a different page than the scenario the MC question could be the scenario with the choices hidden by JS. If the scenario needs to be on the same page as the Field2 and Field3 questions, have the hidden question on its own page, and have JS automatically click the Next button.


Leave a Reply