Creating custom constraints for each select_one choice

607
2
Jump to solution
01-04-2021 11:47 AM
pskrivanos
New Contributor II

Hi there, 

I'm building a bird survey form using the Survey123 desktop app. In the first field of the form the user selects the species of bird they are observing (from a select_one list), and then in the following field they specifiy the number of observed birds (integer value).

In the second field I would like to set threshold values - these are unique values depending on the species of bird observed. For example one species the threshold value may be 5, for another it may be 100.

Is is possible to set constraints for each individual species based on it's unique threshold value so that users are unable to submit a form with inappropriate number of observed bird values?  

1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor

Yep I do it.

Use pull data to go get your min and max depending on what they chose.

DougBrowning_0-1609800409875.png

Then use those in the constraint

DougBrowning_1-1609800450332.png

CSV in the media folder holds the lookups

DougBrowning_2-1609800533479.png

 

Pretty easy, hope that helps.

View solution in original post

2 Replies
DougBrowning
MVP Esteemed Contributor

Yep I do it.

Use pull data to go get your min and max depending on what they chose.

DougBrowning_0-1609800409875.png

Then use those in the constraint

DougBrowning_1-1609800450332.png

CSV in the media folder holds the lookups

DougBrowning_2-1609800533479.png

 

Pretty easy, hope that helps.

pskrivanos
New Contributor II

Hi Doug, this solution worked! Thank you very much for your help.