Skip to content

Model Object

errorsOn()

errorsOn() — returns array

Available in: model Category: Error Functions

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

NameTypeRequiredDefaultDescription
propertystringyesSpecify the property name to return errors for here.
namestringnoIf you want to return only errors on the property set with a specific error name you can specify it here.