Auto-selecting one choice of a question | XM Community
Question

Auto-selecting one choice of a question


Badge
I have a question that randomly selects 3 options from 5 questions that come previously. In that question I wanted qualtrics to always auto-select one of the choices auto-click the "next button" (also if there are no choices display just auto-click "next button". I have the javascript code for the auto-clicking but I wasn't able to find anything related to auto-clicking choices.

2 replies

Userlevel 6
Badge +27

Use the below code to auto clicking the choice. Update the choice id in the below code as required:

jQuery("#"+this.questionId+" input[choiceid='1']").click()

 

Userlevel 4
Badge +12

In case you dont want to use custom code you can also use autocode choices in question of survey.

Leave a Reply