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.
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.