Select to view content in your preferred language

Adding an ENTRY LIMIT option to automatically close a form after a set amount of entries

321
2
05-13-2025 01:18 AM
Status: Open
Labels (3)
JonasGipiskis
Emerging Contributor

Survey123 would check after submission if the form wouldn't exceed a certain amount of limit and not allow submission. Example: Form limit = 20. 21st person when pressing submit would get a pop-up saying form collection has closed.

Tags (1)
2 Comments
Neal_t_k

You could try doing a pulldata("@layer", "getValue", "attributes.TotalCount"......." and make the whole form be relevant on being less than 20 submissions in the layer.  If it is greater when they open it have a note saying the form is closed.  You could also have a hidden required relevant field that wouldn't allow a submission if greater than 20.  Probably not as elegant as a built in submission limit, but could work.

https://community.esri.com/t5/arcgis-survey123-questions/using-the-pulldata-layer-functions/m-p/1569...

AlfredBaldenweck

The only issue with the pulldata() that it seems to check for the submission count the first time you open the survey, but not each additional submission unless you close and re-open the app. Additionally, offline workflows would get wonky.

One possible workaround is to set up a webhook or something that emails you when there are more than 20 records, then you can manually close the survey and just delete the extra records.