Solved
How to pipe answers (that are not HighestValue or LowestValue) from a rank order question?
I am currently developing a multicriteria decision analysis survey using swing weighting. In the first block I would like respondents to rank 8 options from "most important" to "least important".
In the next block I would like respondents to give a numerical value to indicate how important each of these options is relative to each other using a slider. These options should appear in descending order of importance, as indicated by the previous question.
To do this I need to be able to pipe the "2ndHighestValue, 3rd HighestValue... 7thHighestValue" from the ranking question into the weighting (slider) question. How can I do this? So far I have only been able to pipe in the HighestValue and LowestValue.
Thankyou for any help you can provide!
Best answer by Wheelerjack
I had some help from a Java programmer who fixed this! Adding this script fixed my problem:
Hope this helps!
Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
});
Qualtrics.SurveyEngine.addOnReady(function()
{
/*Place your JavaScript here to run when the page is fully displayed*/
$(document).on('DOMSubtreeModified', function(){
var l=jQuery("ul li span.label span label span span span").length;
var s=[];
for(var i=0; i<=l;i++){
s[i]=jQuery("ul li span.label span label span span span:eq("+i+")").text();
}
var p=l+1;
for(var t=1;t<=p;t++){
var h=t-1;
Qualtrics.SurveyEngine.setEmbeddedData( 'r'+t, s[h]);
}
});
});
Qualtrics.SurveyEngine.addOnUnload(function()
{
/*Place your JavaScript here to run when the page is unloaded*/
});
View originalLeave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.