field().inError()
Since: Editor 1.3
Check if a field is currently in an error state.
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 sign-in, alternatively an Editor license can be purchased on this site, or sign up for the free trial.
Description
This method provides the ability to check if a field is in an error state or not. A field is defined to be in an error state if an error message is shown (using error()
or field().error()
) and not in error if no error message is shown.