Skip to content

Model Object

hasErrors()

hasErrors() — returns boolean

Available in: model Category: Error Functions

Returns true if the object has any errors. You can also limit to only check a specific property or name for errors.

NameTypeRequiredDefaultDescription
propertystringnoName of the property to check if there are any errors set on.
namestringnoError name to check if there are any errors set with.