{hero}

submitError

Since: Editor 1.0

Form submitted to the server, and data processed event (error only).
Please note - this property requires the Editor extension for DataTables.

The full Editor reference documentation is available to registered users of Editor - the information shown below is a summary only. If you already have an Editor license please , alternatively an Editor license can be purchased on this site, or sign up for the free trial.

Description

Submission complete, but in error event. This is fired when data has been submitted to the server but an error occurred on the server, not a validation in data error, but an error in the processing of the data (typically a JSON formatting error).

Please note the difference between the following three events that can happen at the end of a submit - only one of them will trigger for each submit action:

  • submitSuccess - Processed correctly and no errors detected.
  • submitUnsuccessful - Processed correctly, but validation errors found.
  • submitError - An uncontrolled error occurred at the server-side (typically a JSON formatting error).

Event naming / backwards compatibility note

Prior to Editor 1.3, events were prefixed with the string on and this event was called onSubmitError. That event name can still be used, and will function exactly the same way as the event documented here. The new name is used for simplicity and coherence with the event naming conventions in DataTables.