Select to view content in your preferred language

Required field in Form can still be submitted on Android Devices

447
1
04-12-2022 10:03 AM
GB_-_JonathanJew__GISS_
New Contributor II

I setup a feature service with non-nullable field and have setup the app to make the field required*. 

I was running into the same issue of empty strings as default values and ran this script so that users had to actually fill out every field. 

https://github.com/Esri/collector-tools/blob/master/CollectorUtils/pro/ResetRequiredFields.md

As I was testing, I finally got the expected behavior on my iOS device. However, I have partner groups who are using Field Maps on Android. Now, I have run into a new issue, where users can submit a new feature without filling out required fields. Rather than throwing an error that a field is required, android field maps is submitting the new feature with null values, effectively creating an invalid feature. Upon submission, the field maps user's polygon disappears and ALL fields are shown as null and arcade expressions are displaying as NaN. As far as I can tell, the new features are never actually submitted to the service and the data seems to just vanish on the device as well. 

Is this just an android release bug? 

All I'd like to do is make a field on a form required to be filled and thought I'd jumped through all the hoops to do so. 

0 Kudos
1 Reply
GISJess
New Contributor III

Hi, did you ever find a solution to this issue? Several layers with required fields are submitting even if the required field is not filled in. Also on Android devices.

 

Thanks

0 Kudos