I have a question whereby respondents select 2 options. I would then like to pipe the two options they choose into the text of the next question:
Question 23:
Question 24:
'How is a {1st object} related to a {2nd object}?'
Is there a way to do this?
Many thanks,
Ben
Set up Q24 like:
How is related to a ?
Then JS:
Qualtrics.SurveyEngine.addOnload(function() {
var pipes = "${/*pipe for selected Q23 choices goes here*/}".split(", ");
jQuery("#"+this.questionId+" .pipe").each(function(i) { jQuery(this).html(pipes[i]); });
});
Thank you very much, Tom,
I've never used JS on Qualtrics, where can I found out more about how to implement your code? (for dummies!) E.g. the ' ' remains when I copy it into my question... Do I need to change any of the JS for my survey?
Best,
Ben
https://community.qualtrics.com/XMcommunity/discussion/comment/41899#Comment_41899You have to edit your question in HTML View. You don't need to change the JS.
Without JS you can do so with lots of Branch Logic. If you don't need them separated you could do:
How are ${q://QID87/ChoiceGroup/SelectedChoices} related?
https://community.qualtrics.com/XMcommunity/discussion/comment/41898#Comment_41898Is there a way to do this when you have two sets of responses?
I.e. from a matrix table? Pipe in each 'yes' response and each 'no' response separately? (not as a list of each group)
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.