Select to view content in your preferred language

Close a form when a number of records arrive

839
4
08-23-2022 06:52 AM
Status: Open
Labels (3)
KarolFallas
Occasional Contributor

Have the ability to configure a form to close once the required number of surveys are submitted. Automate the close of the surve123 by number of records.

4 Comments
Richard_Purkis

@KarolFallas 

Thanks for raising a new idea. It matches the same request described in this post Survey123 limit number of submissions of survey.

There is already an enhancement request for this functionality logged as ENH-000150454. As of 23/08/222 this has been already been reviewed and is now in the next phase of consideration.

DougBrowning

As a workaround, and assuming online at the time, what about using the new pulldata(@layer) to the service and get a count.  Then you could hide all the questions and show a text field that says submissions full.

Just an idea.

Rmesen
by

Good idea! 👌🏼👌🏼

Richard_Purkis

Just a quick update posting the resolution from this thread

Using the new pulldata("@layer") function you can count the number of records submitted to a survey (granted that your survey layer has query capabilities enabled).   With that, you can build a constraint to prevent further submits, and show a message indicating that the survey is closed.

Check out this video on minute 22:10, as it describes how to do it. Also some additional help in this blog, and this help topic.

The above is not quite the same as 'closing the survey', but it may do it for you.