Constraining an Integer to Negative Values

330
3
07-28-2020 11:15 AM
MichaelStroh
New Contributor II

I am trying to constrain input values for an integer type question to less than or equal to zero values only.  I entered

".<=0" into the constraint field, but it does not seem to work.

0 Kudos
3 Replies
Jim-Moore
Esri Regular Contributor

Hi Michael

Your syntax looks correct; I just tested with the following and the constraint worked as expected:

Please note that the constraint (and its message) is only triggered when the survey is submitted.

Best,

Jim

MichaelStroh
New Contributor II

Thanks Jim.  I was expecting it to be applied as soon as the user entered the value.  

0 Kudos
Jim-Moore
Esri Regular Contributor

Hi Michael, this is something that has been raised a few times on GeoNet and there are a couple of ArcGIS Ideas you can vote for and/or add your comments to. Please see:

Constraint messages to show up on the fly 

https://community.esri.com/ideas/17633 

0 Kudos