Can I add a "Select All" option to a multiple answer multiple choice question? | XM Community
Question

Can I add a "Select All" option to a multiple answer multiple choice question?

  • 7 June 2019
  • 1 reply
  • 129 views

I would like to have an option for respondents to "Select All" when completing a multiple answer multiple choice question. Is this possible?

1 reply

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);
}
});

});

Leave a Reply