Hi,
I have a form where I want to auto-increment the value of a field for each repeat.
I use this formula:
once((count(${attributes_A}))), similar to what is explained here:
https://community.esri.com/t5/arcgis-survey123-questions/auto-increment-integer-using-survey123/td-p/816815/page/3
It's working perfectly in the preview of S123 Connect and in the S123 app on my phone. However, don't want to work on the web browser...
Anyone can help?
Ken
Note: When used in the Survey123 field app, count() and max() can be placed inside or outside of the repeat. If the function is to be used in the Survey123 web app it must be placed outside of the repeat. Optionally, its value can be referenced in a calculation inside the repeat.
https://community.esri.com/t5/arcgis-survey123-blog/survey123-tricks-of-the-trade-repeats/ba-p/898041
Do you have the count within the repeat? Per above, not supported for web-app.
Thanks! This helped me resolve my issue.
So the count doesn't work inside the repeat, but is working outside of the repeat. So I did the count outside in an hidden field and refered back the value inside the repeat.
Thanks Magisian!
Les membres connectés peuvent publier, suivre les mises à jour, et plus encore. Nouveau ici ? Inscrivez-vous gratuitement.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.