Select to view content in your preferred language

S123 calculation in repeats not working in web browser (working in S123 Connect and S123 app)

851
2
Jump to solution
03-21-2023 12:20 PM
KenBouchard
Regular Contributor

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...

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

 

 

1 Solution

Accepted Solutions
ChristopherCounsell
MVP Regular Contributor

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/89804...

Do you have the count within the repeat? Per above, not supported for web-app.

View solution in original post

2 Replies
ChristopherCounsell
MVP Regular Contributor

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/89804...

Do you have the count within the repeat? Per above, not supported for web-app.

KenBouchard
Regular Contributor

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!

0 Kudos