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

How to disable 'delay showing submit button' from the second time the question is visited

  • August 12, 2023
  • 2 replies
  • 181 views

Forum|alt.badge.img+2

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.

2 replies

rgupta15
Level 4 ●●●●
Forum|alt.badge.img+8
  • Level 4 ●●●●
  • 92 replies
  • August 12, 2023

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


Forum|alt.badge.img+2
  • Author
  • 1 reply
  • August 17, 2023

@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?