I would like to have an option for respondents to "Select All" when completing a multiple answer multiple choice question. Is this possible?
Page 1 / 1
Hello @Traci ,
Use the below code:
Qualtrics.SurveyEngine.addOnload(function() {
/*Place your JavaScript here to run when the page loads*/
var questionId = this.questionId;
var that = this;
jQuery("#"+questionId+" .QuestionText").append("<br><button id='Select1'>Select All</button>");
jQuery('#Select1').click(function() {
for (var i = 1; i < 4; i++) {
that.setChoiceValue(i, true);
}
});
});
Use the below code:
Qualtrics.SurveyEngine.addOnload(function() {
/*Place your JavaScript here to run when the page loads*/
var questionId = this.questionId;
var that = this;
jQuery("#"+questionId+" .QuestionText").append("<br><button id='Select1'>Select All</button>");
jQuery('#Select1').click(function() {
for (var i = 1; i < 4; i++) {
that.setChoiceValue(i, true);
}
});
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.