Question
Automatically end block with forced answers after a fixed time
Dear all
I have the following problem:
I have a block of 30 "text entry" questions with "forced response" for each question. After 3 minutes participants should automatically advance to the next block.
I tried:
Qualtrics.SurveyEngine.addOnload(function()
{
var timeRemaining = parseInt("${e://Field/timeRemaining}"); //
var timer = setInterval(function() { //ruft funktion auf, 1000 = 1 mal pro Sekunde
if(timeRemaining <= 0) { //Bedingung nicht erfüllt, skip to timeRemaining--
clearInterval(timer);
$('NextButton').click()
}
timeRemaining--;
Qualtrics.SurveyEngine.setEmbeddedData('timeRemaining', timeRemaining);
}, 1000);
});
The code works. "Next" button is clicked. However, as I "force a response" for each question the error message "please answer this question" appears and participants are not avanced to the next question. I guess I need code to 1. write a value into the answer field and then 2. click next button. Or any other ideas how to solve this problem? Can somebody help?
Thanks
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.
