How to Auto-advance after certain time with force response question | Experience Community
Skip to main content

How to Auto-advance after certain time with force response question

  • Oct 9, 2022 7:03 AM UTC
  • 3 replies
  • 282 views

Forum|alt.badge.img+1

Hi community!
How do I write a javascript to do the following:
For a page of force response questions (containing multiple choice and bipolar matrix table), after 2 min without response, automatically select the first options (of multiple choice and bipolar matrix table), and move on to the next page?

Any help is highly appreciated.
Thank you!

3 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+48
  • Oct 10, 2022 4:38 AM UTC

DHE
I think an easier approach would be to set default choice of first option on both questions and instead of force response hide the next button and enable it on these two conditions: when either of the questions option is selected apart from default value or time spent on page is greater than 2 min.
As you would not be able to override the force response on question.
Qualtrics.SurveyEngine.addOnload(function()
{
setTimeout(function(){
jQuery("#NextButton").show();
},120000);
});
Qualtrics.SurveyEngine.addOnReady(function()
{
jQuery("#NextButton").hide();
jQuery(".SingleAnswer").on("click",function(){
jQuery("#NextButton").show();
})
jQuery(".ChoiceRow").on("click",function(){
jQuery("#NextButton").show();
})
});
Hope this helps!


Forum|alt.badge.img+1
  • Author
  • Oct 11, 2022 1:03 AM UTC

SuhasM
Qualtrics Employee
Forum|alt.badge.img+16
  • Qualtrics Employee
  • Oct 12, 2022 2:27 PM UTC

Deepak Thank you for taking time out of your day to create this custom code solution! You've gone above and beyond to help 🙂