Submits a Wix Form.
The submit() function does the following:
onSubmit(). If the form fields do not pass validation, the submit() function returns the SUBMISSION_ERROR.VALIDATION_FAILED error and the submission of the Wix Form data to the server is aborted.onSubmitSuccess().submit() function returns an object with the submitted values.
If the request fails:onSubmitFailure().submit() function returns an error.