auto advance with timer and force response not working. | XM Community
Skip to main content

Hi,

I have 5 MCQ questions in a block , all separated by a page break. Each question has 3 options.  I want to add  timer  for 45 seconds for each question and auto-advance to the next question when the time is up.  Each question is mandatory (force response) but if they don’t answer the question within 45 seconds, I want them to be moved to the next question. 

I also want the questions to stay in the same block as I am scoring the questions in a block. I tried some codes on XM community which had Java Script code (shown below) but did not work:

 

Qualtrics.SurveyEngine.addOnload(function() {

    var that = this;

    setTimeout(function(){

        that.clickNextButton();

    }, 45000); // 45000 milliseconds = 45 seconds

});


Any help would be greatly appreciated.  Need urgent help

  1. Blocks/pages have no impact on the scoring, so that’s not something you should worry about.
  2. Instead of using JS, use the timer question. 
    • Have the timer question and the MCQ on the same page
    • Set the timer to autoadvance
    • Set the MCQ to have a default choice, which could be just a blank option.

This way you can have both force response and timer. 


  1. Blocks/pages have no impact on the scoring, so that’s not something you should worry about.
  2. Instead of using JS, use the timer question. 
    • Have the timer question and the MCQ on the same page
    • Set the timer to autoadvance
    • Set the MCQ to have a default choice, which could be just a blank option.

This way you can have both force response and timer. 

What do you mean by blank option as default? I tried using this but was not working. Any other suggestions.


Leave a Reply