countSubmissions( )


Counts the number of submissions belonging to the specified forms.

The countSubmissions() function is useful for analytics and tracking purposes. For example, if you have a contact form on your website, you can use this function to track how many submissions it receives daily, weekly, or monthly.

Authentication

This method may require higher-level permissions than the caller has, based on their identity and roles and permissions. In these cases, you can ensure the method is called with the required level of authorization by using one of the following:

Permissions
Read Submissions
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
formIdsArray<string>Required

Form IDs which submissions should be counted.


namespacestringRequired

The app which the form submissions belong to. For example, the namespace for the Wix Forms app is wix.form_app.form. Call getSubmission() to retrieve the namespace.


optionsCountSubmissionsOptions
Returns
Return Type:Promise<CountSubmissionsResponse>
Errors

This method doesn't return any custom errors, but may return standard errors. Learn more about standard Wix errors.

Did this help?