Select to view content in your preferred language

Odd or Even Integer Specification Survey123 Connect

816
2
Jump to solution
12-09-2022 08:55 AM
FloraGibbs
Emerging Contributor

Is there a way to specify only odd integers can be entered into an integer field using Survey123 Connect? 

0 Kudos
1 Solution

Accepted Solutions
jcarlson
MVP Esteemed Contributor

Survey123 supports a modulus operator, so you could to ${odd_question} mod 2 = 1 in the constraint column. This would ensure that even integers are rejected.

- Josh Carlson
Kendall County GIS

View solution in original post

0 Kudos
2 Replies
jcarlson
MVP Esteemed Contributor

Survey123 supports a modulus operator, so you could to ${odd_question} mod 2 = 1 in the constraint column. This would ensure that even integers are rejected.

- Josh Carlson
Kendall County GIS
0 Kudos
FloraGibbs
Emerging Contributor

Amazing thank you!

0 Kudos