I need to ask a specific retailer first and then randomize the order of the rest within a loop | XM Community
Solved

I need to ask a specific retailer first and then randomize the order of the rest within a loop

  • 6 April 2020
  • 1 reply
  • 3 views

Userlevel 2
Badge +6

I have 5 retailers: A, B, C, D and E that will be asked the same series of questions within a loop and merge. I need to ask B first and then I need to randomize the rest. Is this possible in JavaScript?

icon

Best answer by TomG 6 April 2020, 14:24

View original

1 reply

Userlevel 7
Badge +27

You can't control loop order with JS. Loop based on a question that uses Advanced Randomization to put the retailers in the preferred order. The randomized order will get carried forward into the loop.

Leave a Reply