Select to view content in your preferred language

Input Data Validation involving Note

407
3
Jump to solution
03-06-2026 04:01 PM
SteveCole
Honored Contributor

Getting my feet wet(ter) with Survey 123 and not quite sure how to implement input validation for a specific section of my form.

The form is for field data collection along sampling transects. As you see below, the user specifies the overall length of the transect, and the length of the transect that would be within wetland. Once the wetland length of the transect is known, I use a calculation to subtract the specified wetland length value from the total length value to derive the wetland buffer length.

S123_input_validation.jpg

This all works but if I enter a wetland length greater than the total length of the transect, it will calculate a negative number as shown in my screenshot. I've added a constraint on the wetland length input but my understanding is that constraints are actually triggered when attempting to submit the survey rather than as real time data validation.

Any suggestions? FWIW, here's my XLSForm:

s123_xlsform.jpg

0 Kudos
1 Solution

Accepted Solutions
DougBrowning
MVP Esteemed Contributor
3 Replies
Neal_t_k
MVP Regular Contributor

Keep the constraint on it, that will ensure they fix it before submit.

You could try making a note field with a warning text.  Make it relevant if Wetland Transect is greater than Transect Length.  That way you are warning user right away and the constraint prevents submission.

DougBrowning
MVP Esteemed Contributor

I think this would be a great use case for my emojis trick  see  https://community.esri.com/t5/arcgis-survey123-documents/how-to-simulate-instant-data-checking-using... 

SteveCole
Honored Contributor

I recall seeing this during some S123 searches. I've marked it as the solution because it looks like the best approach given the current options. Thanks..

s123_input_validation_warning.jpg