How do I disable the respondent to continue the survey if they did not get the last question correct | XM Community
Skip to main content
Solved

How do I disable the respondent to continue the survey if they did not get the last question correct

  • March 10, 2020
  • 4 replies
  • 638 views

Forum|alt.badge.img
What I am thinking is to save the score of that question as embedded data, and then if the answer is incorrect, branch to a new block saying 'it is a wrong answer, please go back', and hide the 'next' button by adding Javascript. Is there any alternative easier way to do that instead?

Best answer by TomG

> @Pei_2009 said: > What I am thinking is to save the score of that question as embedded data, and then if the answer is incorrect, branch to a new block saying 'it is a wrong answer, please go back', and hide the 'next' button by adding Javascript. Is there any alternative easier way to do that instead? You could use custom validation on the last question where the valid condition is the correct answer. Then they can't move forward until they answer correctly.

4 replies

MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Level 5 ●●●●●
  • 456 replies
  • March 10, 2020
A side question.. Back button is not working between branches. How are you planning to send them back?

Forum|alt.badge.img
  • Author
  • 29 replies
  • March 10, 2020

MsIreen you are right. I failed. What should I do instead then?


MsIreen
Level 5 ●●●●●
Forum|alt.badge.img+23
  • Level 5 ●●●●●
  • 456 replies
  • March 10, 2020
@Pei_2009 Check this topic about Table of contents

TomG
Level 8 ●●●●●●●●
Forum|alt.badge.img+27
  • Level 8 ●●●●●●●●
  • 6083 replies
  • Answer
  • March 10, 2020
> @Pei_2009 said: > What I am thinking is to save the score of that question as embedded data, and then if the answer is incorrect, branch to a new block saying 'it is a wrong answer, please go back', and hide the 'next' button by adding Javascript. Is there any alternative easier way to do that instead? You could use custom validation on the last question where the valid condition is the correct answer. Then they can't move forward until they answer correctly.