Return to v2.0 docs

errorsOn()


Model Object Error Functions array model


Returns an array of all errors associated with the supplied property (and error name if passed in).

Name Type Required Default Description
property string Yes Specify the property name to return errors for here.
name string No If you want to return only errors on the property set with a specific error name you can specify it here.
// Get all errors related to the email address of the user object
errors = user.errorsOn("emailAddress");

Related Functions

Error Functions