onSubmit( )


Runs a callback when a site visitor starts to submit a Wix Form yet before the form is actually submitted and sent to the server.

Method Declaration
Copy
Method Parameters
callbackfunctionRequired

callback(formValues: object): void Callback for the form submission.

Errors

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

Did this help?