How do I pipe the top 3 choices from Rank Order into the next three questions? | XM Community
Solved

How do I pipe the top 3 choices from Rank Order into the next three questions?

  • 25 February 2020
  • 2 replies
  • 107 views

Hi QX Peeps,

I've created a rank order question and would like to pipe the top 3 choices from the rank order into the next three questions. The first one is easy - I can use ${q://QID1003/ChoiceGroup/ChoiceWithLowestValue} - however I can't see an option to pick the next two after that. I tried altering the format to ${q://QID1003/ChoiceGroup/ChoiceWithSecondLowestValue} or ${q://QID1003/ChoiceGroup/ChoiceWithNEXTLowestValue} - these don't work.

I'm wondering if anyone has solved this before?
icon

Best answer by TomG 29 February 2020, 18:28

View original

2 replies

Userlevel 7
Badge +27
You need to use JavaScript or a web service to do this. Basically, pipe all the ranks into your script, have it sort them by rank, then set/return rank1, rank2, rank3, etc. variables.
Thanks @TomG

Leave a Reply