How to randomize timed questions in a block? | XM Community
Skip to main content

How to randomize timed questions in a block?

  • November 3, 2022
  • 3 replies
  • 342 views

Forum|alt.badge.img+1

I have 40 questions in my block that are now randomized and shown in different pages, but I would like to add the same time limit for each question, is there a way of doing it using the advanced randomization? When I tried using the time question and page breaks the randomization messed with all questions.
Thanks!

3 replies

Deepak
QPN Level 8 ●●●●●●●●
Forum|alt.badge.img+46
  • November 3, 2022

musresearch
You can include the below JS in all your questions where you want the time limits or include it in header> source. Currently, I have kept the time limit to 5 seconds, you can change it accordingly. You can avoid using timer question.
For header: (I would recommend this if you want it on all pages)

For Question:

Qualtrics.SurveyEngine.addOnload(function()
{
/*Place your JavaScript here to run when the page loads*/
setTimeout(function() { jQuery('#NextButton').click();
  }, 5000);
});



Hope it helps!


TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • November 3, 2022

musresearch,
If the time limit is the same for all questions, a way you can use the timing questions it to use advanced randomization to only randomize the non-timing questions and set it to show two questions per page (a randomized question and the fixed timing question).


Forum|alt.badge.img+1
  • Author
  • November 4, 2022

Thank you Deepak and TomG ! Both worked, but I ended using Tom's solution.