Random selection | XM Community
Skip to main content
Question

Random selection

  • December 27, 2020
  • 1 reply
  • 15 views

I have an awareness question in a survey where I am showing a list of brands. If the respondents select more than two brands, I want the program to randomly pick two brands and insert those in the subsequent questions. To accomplish this, I have added two questions which just randomly select two brands and have hidden these from respondents using a Java script (detailed below). The survey program is working alright, but the random selection data (brands) is not being captured.
Does any one know how do I capture the randomly selected brand data?
Here is the Java script:
Qualtrics.SurveyEngine.addOnload(function() {
   jQuery("#"+this.questionId).hide();
   jQuery("#Buttons").hide();
});   
Qualtrics.SurveyEngine.addOnReady(function() {
   jQuery('#NextButton').click();
});

1 reply

Forum|alt.badge.img+22
  • Level 7 ●●●●●●●
  • December 28, 2020

In piped text, you have an option for

selected choices
.