Delay hotspot response? | XM Community
Skip to main content
Solved

Delay hotspot response?

  • October 15, 2018
  • 4 replies
  • 12 views

Hello, I would like to delay hotspot regions from being clickable/selectable for a certain amount of time and I have no idea how to do this. Could anyone help me? Thanks, S

Best answer by Anonymous

Hello @syntheso , Paste the following code in the js(OnReady) of the Hot spot question jQuery(".QuestionBody").css('pointer-events','none'); setTimeout(function () { jQuery(".QuestionBody").css('pointer-events','');},4000); The above code will prevent the user from making any events(clickable/selectable) on the hot spot graphic for 4000ms (you can change the value of time as per your requirement)

4 replies

PeeyushBansal
Level 6 ●●●●●●
Forum|alt.badge.img+44
  • Level 6 ●●●●●●
  • October 15, 2018
You can show text first and image will appear with delay, read post below for code:- https://www.qualtrics.com/community/discussion/1920/delay-a-quesiton-from-appearing

  • Author
  • October 15, 2018
Hi Bansal, thank you for your response. It's not quite what I'm after because I want the image to appear first before it is possible to click a hotspot on it. The image is a gif, so I only want to be able to click it when the gif animation has finished. Thanks,

  • Answer
  • October 15, 2018
Hello @syntheso , Paste the following code in the js(OnReady) of the Hot spot question jQuery(".QuestionBody").css('pointer-events','none'); setTimeout(function () { jQuery(".QuestionBody").css('pointer-events','');},4000); The above code will prevent the user from making any events(clickable/selectable) on the hot spot graphic for 4000ms (you can change the value of time as per your requirement)

  • Author
  • October 15, 2018
Wonderful! I can confirm that works. Thank you so much!