How to disable 'delay showing submit button' from the second time the question is visited | XM Community
Skip to main content

Hello,

 

I have a question while building a survey on the Qualtrics survey platform, and would appreciate any guidance in how to solve this issue.

There is a page in my survey showing a leaflet, where I used javascript to make the ‘next’ button to appear 15 seconds after the page is open. I did this to ensure people are obliged to examine the leaflet for a minimum of 15 seconds.

However, I would like to disable this delay if the page is visited again. For example, if people come back to this page after proceeding to the next questions, I don’t want them to have to stay in the page for another 15 seconds.

 

Does anyone know how this can be implemented? Either by javascript or existing functions?

I also looked into the ‘timer’ option already built into the survey platform, but it does not let me distinguish between the first time vs later times the question is viewed.

Yes. Use JS to add the delay and then create a flag to make your code work.


@rgupta15 I am very new to Javascript. Could you share how I could create a flag that would make this code only work the first time the page is loaded?


Leave a Reply