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

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

  • 7 June 2019
  • 1 reply
  • 154 views

I would like to have an option for respondents to "Select All" when completing a multiple answer multiple choice question. Is this possible?
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