onSubmitFailure( )
Runs a callback when a site visitor is not able to successfully submit a Wix Form to the server.
If a Wix Form has not been successfully submitted by the site visitor, the received SubmissionError
object contains error information about why the Wix Form could not be submitted.
Error Codes and descriptions
- INVALID_CAPTCHA - A CAPTCHA request was not verified.
- VALIDATION_FAILED - Form field values are invalid.
- SERVER_UNAVAILABLE - The server is currently unavailable.
- UNKNOWN_ERROR - An unknown error occurred.
Method Declaration
Copy
Method Parameters
callbackfunctionRequired
callback(error: SubmissionError): void Callback for the failed form submission.
Was this helpful?
Yes
No