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:
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
Solved! Go to Solution.
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.
Do you have the count within the repeat? Per above, not supported for web-app.
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.
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!