How to move to a different block with javascript? | XM Community
Skip to main content
Solved

How to move to a different block with javascript?

  • September 18, 2018
  • 3 replies
  • 74 views

I have a countdown timer setup for a question and I want to be able to move the participant to a different block with a warning informing them to respond faster before moving them back and restarting the question block and I just can't figure out the code for it. Any help would be greatly appreciated!

Best answer by TomG

To repeat a question block you need to duplicate it in the survey flow. The questions that were answered the first time will already be answered the second time.

3 replies

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • September 18, 2018
The only way to move to a new block is to click the Next button (or the Jump button if you are using a table of contents): ``` jQuery("#NextButton").click(); ```

  • Author
  • September 18, 2018
Ah that's annoying, in that case is there a way for me to show a warning message before restarting the block of questions? I checked online and saw that there was a way to show an image on top of the question block but I'm still unsure how to restart the questions.

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • Answer
  • September 19, 2018
To repeat a question block you need to duplicate it in the survey flow. The questions that were answered the first time will already be answered the second time.