Validate Multiple Choice Questions and Transition | XM Community
Skip to main content

Hi,
I am somewhat new to writing custom script (source script) in Qualtrics but I am starting to get the hang of it. I am stuck on a validation issue though.
Here is my issue:
In a block I have 4 multiple choice questions. I am able to add validation that displays a custom message if at least 1 of the 4 questions are answered incorrectly. However, what I would like to do is that if at least 1 of the 4 questions are answered incorrect to transition (i.e., next screen) to a previous block. This will force the participant to go through the introduction again leading up to the block with the 4 multiple choice questions. If all 4 questions are answered correctly, they can progress in the study.

Is that something that could be written in Qualtrics? Please any help/advice/links would be greatly appreciated.

Sincerely,
Your fellow coder!

You can use either loop & Merge setup for this or skip logic. For loop just set on intro question logic as if Q1=1 or Q2=1 or Q3=1 or Q4=1 (here Q1-Q4 are yours question on next page and 1 is the correct answer) and on Q1-Q4 just use if intro display question is displayed. Use total iteration as 50 max or maybe 10.


Thank you for the input, I understand the concept of using skip logic but when I select this option it only shows the ability to move forward not backwards. I would like to have the user move back to a previous block if they miss just one of the questions. Any way to write that in source code?


Leave a Reply