Skip to content

Model Object

addErrorToBase()

addErrorToBase() — returns void

Available in: model Category: Error Functions

Adds an error on a specific property.

NameTypeRequiredDefaultDescription
messagestringyesThe error message (such as “Please enter a correct name in the form field” for example).
namestringnoA name to identify the error by (useful when you need to distinguish one error from another one set on the same object and you don’t want to use the error message itself for that).