Pipe Text with second highest value | XM Community
Skip to main content

Hey everyone,
i am trying to implement this code to my survey but i doesn't work. All the screenshots from this site are not available (https://kurtmunz.com/rank-order-carry-forward-in-qualtrics-with-javascript-2/).
And i do not understand this comment https://community.qualtrics.com/XMcommunity/discussion/2285/pipe-text-from-ranked-items. I have a ranking question and they have to rate different persons from 0 to 100. In the next 3 questions i would like to ask the 3 highest values https://community.qualtrics.com/XMcommunity/discussion/2285/pipe-text-from-ranked-items
Can you help me. Thank you in advance.

You might be interested in the captureRanks function. It uses a better approach than the page you linked to.


https://community.qualtrics.com/XMcommunity/discussion/comment/49416#Comment_49416Thank you, Tom. I have absolut no idea about programming but there is a statement on your site "This function is available for a reasonable fee." Maybe you can help?
I have a ranking question and they have to rate different persons (15) from 0 to 100. In the next 3 questions i would like to ask the 3 highest values. Is it complicated to create this function?


https://community.qualtrics.com/XMcommunity/discussion/comment/49537#Comment_49537It would be fairly to very complicated depending on the format of your ranking question. It you don't know JavaScript it would be extremely difficult (i.e., almost impossible).


https://community.qualtrics.com/XMcommunity/discussion/comment/49539#Comment_49539Thank you, Tom. So you have a rating question an you can enter values from 0 to 100 (i.e., 90 for family, 80 for friends, 66 for children...). So you have 15 people to rate. And after that there a 3 questions (i.e. piped text question with highest value (familiy), question with the second highest value (friends)...). Do you think there is another way to create these questions?
grafik.png


https://community.qualtrics.com/XMcommunity/discussion/comment/49540#Comment_49540The captureRanks function wouldn't work on that because it isn't a ranking question. Looks like you are using a constant sum without a total. The issue with the approach you are taking is that the same rating can be assigned to multiple people. Actually, all 15 could get the same rating.
As for sorting them into order, it can be done with some custom JavaScript but breaking of ties between the top 3 would have to be random or alphabetical.


https://community.qualtrics.com/XMcommunity/discussion/comment/49557#Comment_49557Thank you very much, Tom. You are absolutely right. I've just updated the question type to a constant sum without a sum. And yes the same rating can be assigned to multiple people but that's ok for this project. Top 3 alphabetical is also ok. Can you help me with the custom JavaScript for pipe text? Thank you in advance!


Leave a Reply