Qualtrics.SurveyEngine.addOnload(function()
{
this.getQuestionContainer().hide();
});
Qualtrics.SurveyEngine.addOnReady(function()
{
var delayTime = 30000 //This is the time of delay
var that = this;
setTimeout(function(){that.getQuestionContainer().show()}, delayTime);
});
The timing can be updated by updating the value of delayTime, which is set in milliseconds.
This is a great answer.
I've tried delaying a slider question. However, the problem is that when the slider appears (after 20 seconds) the slider is "cut". It looks as if the values had been reduced to 0-1, while the slider is set to be 0-100. The problem disappears when I remove the javascript code (above).
Is there a way to have the code "show" the entire slider (instead of cutting it)?
Thank you!
Two images to clarify:
With delay (in JS) what appears is:
Without delay (in JS):
Hi Marta , if you still need, I was able to get the slider to display okay after the delay by using the below:
var q="#"+this.questionId;
jQuery(q).css("content-visibility","hidden");
setTimeout(function () {
jQuery(q).css("content-visibility","visible");
},5000);
Thank you, Tom!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.