I'm using JavaScript to hide a question and then click the next button. However, I'm sometimes getting issues on the subsequent screen... with the next button then being clicked on the subsequent screen as well. It's almost like I need to clear the Java cache before moving to the next screen or on the next screen??
Qualtrics.SurveyEngine.addOnload(function() {
jQuery("#"+this.questionId).hide();
jQuery("#Buttons").hide();
});
Qualtrics.SurveyEngine.addOnReady(function() {
jQuery('#NextButton').click();
//this.clickNextButton();
});
I'm also sometimes getting the message above...
I assume you are in preview mode? I think it is because it the script is running twice - once in each frame (desktop and mobile). It won't be an issue in non-preview mode.
Hi Tom - I think it happens in both preview and non-preview mode.
I think I saw another post where someone had a similar issue - I tend to get the issue when I use the next button click javascript.
For now, I've removed the javascript and used a timing question (0.01 seconds) to auto-advance.... and then used a lot of padding at the top of the question (which I think you suggested in another post), so I don't get the momentary glimpse of the hidden question. I think that all works??
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.