How to delay the slider bar from appearing for 5 seconds? | XM Community
Skip to main content
Solved

How to delay the slider bar from appearing for 5 seconds?

  • February 11, 2019
  • 3 replies
  • 76 views

Forum|alt.badge.img+1
I am using slider bar in one of my questions. The questions involves two lines of text and a picture. However, I want the slider bar AND its correspnoding question to appear after 5 second. Can you please help me with that? I attached a screenshot and highlighted the items I want to appear with a delay. !

Best answer by Anonymous

Hello @busmarketing , Paste the below code in the js(onReady) of slider question var that =this.questionId; jQuery("#"+this.questionId+ " .QuestionBody").css("visibility","hidden"); setTimeout(function(){ jQuery("#"+that+" .QuestionBody").css("visibility","visible") }, 5000);

3 replies

  • Answer
  • February 11, 2019
Hello @busmarketing , Paste the below code in the js(onReady) of slider question var that =this.questionId; jQuery("#"+this.questionId+ " .QuestionBody").css("visibility","hidden"); setTimeout(function(){ jQuery("#"+that+" .QuestionBody").css("visibility","visible") }, 5000);

Forum|alt.badge.img+1
  • Author
  • February 11, 2019
Thanks a lot, @shashi

Forum|alt.badge.img+1
Hi @shashi I'm trying to use the code you provided me for a multiple choice question, such that the choices (there are 2 choices only) appear after 2 seconds. The code does disappear the choices but then it won't show them back. Could you please guide me? Thanks.