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

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

  • 11 February 2019
  • 3 replies
  • 46 views

Userlevel 1
Badge +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.

!
icon

Best answer by Anonymous 11 February 2019, 09:06

View original

3 replies

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);
Userlevel 1
Badge +1
Thanks a lot, @shashi
Userlevel 1
Badge +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.

Leave a Reply