Auto-selecting one choice of a question | XM Community
Skip to main content
Question

Auto-selecting one choice of a question

  • July 6, 2019
  • 2 replies
  • 57 views

Forum|alt.badge.img
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

Shashi
Level 8 ●●●●●●●●
Forum|alt.badge.img+34
  • Level 8 ●●●●●●●●
  • April 21, 2023

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()

 


CxEx
Level 5 ●●●●●
Forum|alt.badge.img+13
  • Level 5 ●●●●●
  • April 23, 2023

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