System:Form:addError
From Aspen Documentation
Triggers a form data validation error message. The message will be stored in an array an error will be set to true.
Since 1.0
Contents |
Arguments
void addError' (string $field, string $message)
- field
- Form field name the error message is associated with.
- message
- Warning message that may be presented to the user.
Notes
- Use error to check if any errors exist, and either getErrors or printErrors to display the errors on the forms.