Adds an event handler that runs when a site visitor submits a Wix Form and it is successfully received by the server.
When the site visitor submits a Wix Form, the field values are cleared and the onWixFormSubmitted()
callback runs for the WixForms
element.
The callback to run when the Wix Form is submitted is either the name of the function or a function expression.
The received WixFormSubmittedEvent
object
contains information about the Wix Form that was submitted. The WixFormSubmittedEvent
object is returned by the
callback asynchronously following verification of a successful submission, while the server starts to process the
relevant actions.
onWixFormSubmitted()
provides information and functionality available on the client side:
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.onWixFormSubmittedError()
event handler, which sets events that fire when a site visitor submits a Wix Form and it is not 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(event: WixFormSubmittedEvent): void
The name of the function or
the function expression to run when a Wix Form is submitted.