Adds an event handler that runs 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
WixFormSubmittedErrorEvent
object
contains error information about why the Wix Form could not be submitted.
The WixFormSubmittedErrorEvent
object is returned by the callback asynchronously right after
an unsuccessful submission.
The onWixFormSubmittedError
error handler runs for for the WixForms
element. The callback to
run when a submission error occurs is either the name of the function or a function expression.
Error Codes and Descriptions
For other Wix Forms events, see:
onWixFormSubmit()
event handler, which sets events that fire when a site visitor submits a Wix Form yet before it is sent to the server.onWixFormSubmitted()
event handler, which sets events that fire when a site visitor submits a Wix Form and it is successfully received by the server.onFormSubmit()
event handler, which is called in the Backend section's code, to set events that fire on the backend when a site visitor submits a form. *
eventHandler(errorEvent: WixFormSubmittedErrorEvent): void
The name of the function or
the function expression to run when a Wix Form is not submitted due to error.