Hello,
is it possible in ArcGIS Survey123 Web Designer to limit an entry in a Number field to 1 OR 0.
The constraint I have set below in example image still allows entries such as 00, 001 etc etc.
Thanks
Hey @CMcDonald
Here's a suggestion from another user in the solution, setting yes or no to 1 and 0, and then returning the number:https://community.esri.com/t5/arcgis-survey123-questions/return-a-boolean-value-0-or-1-different-than-label/m-p/1127563#M39349
You would also be able to set regex inside of the XLSForm: regex(., '^(0|1)$')
This would restrict it to be 0 or 1 as requested.
Cody
Hi @CodyPatterson unfortunately that solution is using Survey123 Connect, I don't use that.
Ah I see, sorry about that, instead, would it be possible to use radio buttons to create a choice question, I attempted this here and it returned only 1 or 0 depending on the choice:
This is a single select question:
Hi @CodyPatterson Yes I tried this as it would be a slightly better solution but at the end of each section I have to perform a calculation i.e. Question1 + Question2 =
I could not get a calculation to work when the questions were of Single select type 😞
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.