Select to view content in your preferred language

Survey 123- Is there a way to require correct answers to continue?

332
6
03-31-2025 09:50 AM
MeganHomison
Emerging Contributor

Hi, does anyone know if there's a way to require a question to be answered correctly in order to continue filling out a form or in order to send it? I'm thinking of a required question which would require the user to type in the correct answer to fill out or submit the form. I've searched around a bit and haven't really found what I'm looking for, but I have very limited experience creating forms in Survey123 so maybe I'm missing something. Thank you!

6 Replies
RyanUthoff
MVP Regular Contributor

Is this going to be a pre-determined question/answer that will stay the same for every single survey that is submitted? Or will the answers be dynamic?

0 Kudos
RyanUthoff
MVP Regular Contributor

If the answers are going to be the same every time, here is what you can do. Create your question in Survey123, and then add a constraint to it. The constraint will prevent the survey from sending unless it meets the criteria of the constraint. And then you can also include a constraint message that will tell the user if the answer is not correct.

I attached a screenshot example below. For this one, there is a constraint of .="test" meaning that it will only submit the survey if the user inputs test in the question. If they enter anything else, there is a constraint message stating that. Note that for text responses, the text value needs to be in quotes in the constraint.

RyanUthoff_0-1743443069165.png

RyanUthoff_1-1743443269562.png

RyanUthoff_2-1743443289299.png

 

MeganHomison
Emerging Contributor

Thank you! I tried this out and it works!

0 Kudos
LaurenceTait
Frequent Contributor

RyanUthoff has a good solution. I'd approach it slightly differently, by constructing a hidden group that only becomes visible when the correct answer is provided. This makes it clearer to the user what is expected.

 
Either solution works.
Capture.JPG

Capture.JPG
MeganHomison
Emerging Contributor

Thank you! I like the look of this!

0 Kudos
PeterKnoop
MVP Regular Contributor

You might find this resource on self-check quizzes to be helpful: How to add a self-check quiz into ArcGIS StoryMaps using Survey123