I want to display pictures for fixed time. so I defined the "Auto-advance after" to 8 seconds, and to prevent the subjects from advancing by clicking on next button, I defined the "Enable submit after" to 15 seconds.
But it is still possible to move forward by pressing "enter".
I tried to disable it by using the next script:
Qualtrics.SurveyEngine.addOnReady(function() {
this.hideNextButton();
});
and this too:
Qualtrics.SurveyEngine.addOnload(function() {
this.disableNextButton();
});
but I still can move forward by pressing enter.
note: I want to prevent the possibility of advancing only in some of the questions in block, so I can not use embedded data.
any suggestions?
I would be very grateful for your help!
Page 1 / 1
It could be related to the fact that in other questions in the same block I have the next JS, which enable to progress by "enter"?
Qualtrics.SurveyEngine.addOnload(function() {
var qid = this.questionId;
document.onkeydown = function(event) {
console.log('keydown',event);
if (event.which == 37) {
event.preventDefault();
Qualtrics.SurveyEngine.registry[qid].setChoiceValue(1, true);
} else if (event.which == 39) {
event.preventDefault();
Qualtrics.SurveyEngine.registry[qid].setChoiceValue(2, true);
} else if (event.which == 13) {
event.preventDefault();
jQuery('#NextButton').click();
}
}
});
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.