I need to ask a specific retailer first and then randomize the order of the rest within a loop | Experience 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

  • Apr 6, 2020 2:50 AM UTC
  • 1 reply
  • 16 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.

View original

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • Apr 6, 2020 12:24 PM UTC

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.