Constraint not working?

2322
7
11-08-2019 05:25 AM
GrattanWelch
New Contributor

I'm new to Survey123. I have some simple constraints in version 3.6.137 as shown below.

However, when I enter wrong data an error is not generated. What am I doing that is not correct?

 

0 Kudos
7 Replies
ChelseaRozek
MVP Regular Contributor

It might be a bug, I'm seeing the same thing in 3.6.137 as well as 3.5.166. Unfortunately, I don't have an even older installer to see if it was working at some point.

0 Kudos
megan_r
Esri Contributor

Hello Grattan,

In your screenshots (where the errors do not occur), have you submitted the survey? Or are these taken before the survey is submitted. In my testing, I am finding that the constraint message only appears after I try to submit a survey with an invalid record. 

Best,

Megan

0 Kudos
GrattanWelch
New Contributor

Hi Megan,

No I did not submit. I assumed that the error would be shown before moving on to another question.

0 Kudos
ChelseaRozek
MVP Regular Contributor

I thought it used to validate immediately, though I haven't used constraints a lot. There seems to be some recollection here as well that it used to be immediate, though they noticed it varied with field type: Survey123 Connect .>now() constraint not working Johnathan Hasthorpe‌, can you confirm the status of the constraint functionality?

0 Kudos
JamesTedrick
Esri Esteemed Contributor

Hi Grattan, Chelsea Rozek

As Megan indicated, validation handling was changed in 3.5 to validate when a submission is attempted.

leo_SwissGIS
New Contributor III

Hi,

Someone recently added an ArcGIS Idea for that:

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

Please consider voting it up if you'd like to have the constraint validation immediately, and not only when you submit the form.

Léo

ShreyesShiv1
New Contributor II

is there any documentation about how to define Constraints? syntax etc

Tags (1)