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

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

  • April 6, 2020
  • 1 reply
  • 7 views

Forum|alt.badge.img+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?

Best answer by TomG

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.

1 reply

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

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.