Auto advance page after designated time | XM Community
Solved

Auto advance page after designated time

  • 26 March 2019
  • 2 replies
  • 129 views

Hello,
I am trying to put together a presentation phase for an experiment where the participant views a images for 2 seconds each. I would like images to pop up one by one. I would need these images presented in random order.
I used the following Javascript which worked for the first few items and then began glitching.

var displayTime = 2;
new PeriodicalExecuter(function(){
if($('NextButton'))$('NextButton').click();
},displayTime);

Any help would be appreciated.

Thank you
icon

Best answer by Anonymous 26 March 2019, 17:18

View original

2 replies

Hello @Ikorenman ,

You can use Timer question of qualtrics

OR

Use the below code:

setTimeout(function() {
jQuery("#NextButton").click();
}, 2000);
Thank you, works perfectly!

Leave a Reply