Carry forward same ranking order selected in Pick Group and Rank to display as options to slider bar | XM Community
Solved

Carry forward same ranking order selected in Pick Group and Rank to display as options to slider bar

  • 19 April 2018
  • 1 reply
  • 6 views

Badge +1
I am working on Pick, Group and Rank question type wherein i want to use the selected drag and drop choices in the same rank order as answer options to the following slider bar question. Can someone help me on this? Can we achieve this through Javascript? Can you please share if anyone has already written a code?
icon

Best answer by mattyb513 26 July 2018, 21:02

View original

1 reply

Userlevel 6
Badge +6
What I think you should do is create as many options on the slider as there are in the PGR, essentially covering your bases. Then add Embedded data to each option on the slider that:

If Embedded Data `opt1` = `1` then show

`opt1` will increment for each choice.

Then, add this JS to your PGR and it should work for you: https://gist.github.com/mattbloomfield/30dfe9adbc7927310cfabe6155766ba5

Note that randomization will ruin this. You could take more time and assign the `options` array by internal ID instead of display order but I think it's not worth the effort.

Working Example: https://qualtricssfi.az1.qualtrics.com/jfe/preview/SV_d6A4h3BJpPwJ5I1?Q_SurveyVersionID=current&Q_CHL=preview

qsf attached

Leave a Reply