Solved
How to display unselected choices from one question in a list view using descriptive text question?
Hi everyone,
The first question in my survey asks: Please select the software you would like to keep: (the options are based on the user taking the survey). My next question asks: Why do you want to keep the selected software? (This is a text entry question and I used carry forward from fields to display the users selected choices). I want my third question to be descriptive text and display in list view, the unselected choices. I don't know how to do this without changing the question type to multiple choice and adding display logic to the options. I don't want to do this because I want the user to see the unselcted choices (in list view), but not select them. Any help would be greatly appreciated!
Best answer by Anonymous
Hello @Cgandhi07 ,
Step 1: Make an embedded data(UnselectedChoices) in the survey flow before your first question.
Step 2: Paste the following code in your first question `js(OnReady)` part:
jQuery('input[type=checkbox]').change(function() {
var s="";
jQuery('input:checkbox:not(:checked)').each(function(index){
s=s+"<li>"+ jQuery(this).parent().find("label.MultipleAnswer").text()+"</li>";
});
Qualtrics.SurveyEngine.setEmbeddedData( 'UnselectedChoices', s );
});
Step 3: Pipe in the embedded data(created at point 1, UnselectedChoices) in your third question
Output:
!
Piping in next question
!
Note: In the first picture the option "Click to write Choice 1" is hidden using option display logic. Hence, only Unselected Displayed Choices is piped in
View original

Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.