Randomize answer options of looped question only once (between subjects) | XM Community
Skip to main content
Solved

Randomize answer options of looped question only once (between subjects)

  • February 22, 2024
  • 4 replies
  • 58 views

Forum|alt.badge.img+1

Hi Community 

 

I am looking for a way to randomize the choice options of a looped question only once between subjects. It looks as follows: 


Participants can choose one of these options and will go through several more pages before returning to this one (10 loops in total). I had a pretest where I had the order of the choice options randomized in each of the 10 loops  - however, it seemed the cognitive load for participants was quite high and they primarily chose just he upper left corner.

So now I would like to randomize this order only once in the beginning for each subject and want to keep it throughout the following 9 iterations. I tried the different randomization options but they do not seem to give me what I’m looking for.

 

Any ideas on that? Might there be some javascript I could use? Thanks in advance! 

Best answer by TomG

Hi @TomG I guess on an abstract level I understand what you mean. Could you specify it a bit further how i would implement that? 

There really isn’t much to it:

  1. Prior to the loop, add a multiple choice question with your 4 choices and randomize the choices.  Place this question on a page with another question and hide it with JavaScript: jQuery(this.questionContainer).hide();
  2. For the multiple choice question inside the loop, carry forward the displayed choices from the question created in step 1 above.  Do not randomize. The choices will be displayed in the same randomized order in all loops.

4 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • February 22, 2024

@JessiH - Create a MC with the randomized choices prior to the loop and hide it with JavaScript. Carryforward the displayed choices in your loop question.


Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 4 replies
  • February 22, 2024

Hi @TomG I guess on an abstract level I understand what you mean. Could you specify it a bit further how i would implement that? 


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • February 22, 2024

Hi @TomG I guess on an abstract level I understand what you mean. Could you specify it a bit further how i would implement that? 

There really isn’t much to it:

  1. Prior to the loop, add a multiple choice question with your 4 choices and randomize the choices.  Place this question on a page with another question and hide it with JavaScript: jQuery(this.questionContainer).hide();
  2. For the multiple choice question inside the loop, carry forward the displayed choices from the question created in step 1 above.  Do not randomize. The choices will be displayed in the same randomized order in all loops.

Forum|alt.badge.img+1
  • Author
  • Level 1 ●
  • 4 replies
  • February 22, 2024

Thank you @TomG! That worked perfectly!