Select to view content in your preferred language

Constraint in Survey 123, I want to constrain input based on previous question

361
2
07-20-2023 03:02 PM
jasongraham
New Contributor III

Hello

I am using survey 123 connect.  First question is for example,  "How many people bought a fishing license in your household this year?"

Lets say the user enters 5

Next question is "how many people in your household fished this year?"

I want to constrain this to be 5 or less.

I have seen things like .+<{Q1A}  but that does not work

any help?

Tags (2)
2 Replies
ZacharySutherby
Esri Regular Contributor

Hello @jasongraham,

The constraint would look something like .<=${Q1A}. Please also note that depending on the question type the constraint may not be evaluated until the form is submitted. You can test this in Connect by selecting the check mark on the bottom right. 

Thank you,
Zach
GlenShepherd
Esri Contributor

Hi @jasongraham , you would do something like this:

GlenShepherd_0-1689901915190.png

 

0 Kudos