How to insert pictures which automatically diseapper in the survey | XM Community
Skip to main content
Solved

How to insert pictures which automatically diseapper in the survey

  • January 31, 2019
  • 1 reply
  • 11 views

Hi, I'm developing a survey where I want to insert pictures which automatically diseapper after a few seconds. How do I need to do this? I understanded that this needs to be possible with custom code.

Best answer by TomG

Use a setTimeout function, such as: ``` var qobj = this; setTimeout(function() { jQuery(qobj+" img").hide(); }, 5000); //hide after 5 seconds ```

1 reply

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • January 31, 2019
Use a setTimeout function, such as: ``` var qobj = this; setTimeout(function() { jQuery(qobj+" img").hide(); }, 5000); //hide after 5 seconds ```