InputfieldForm::getErrors()
Return an array of errors that occurred on any of the children during input processing.
Should only be called after process() or processInput().
Usage
// basic usage
$array = $inputfieldForm->getErrors();
// usage with all arguments
$array = $inputfieldForm->getErrors($clear = false);Arguments
| Name | Type(s) | Description |
|---|---|---|
$clear (optional) | bool null | Clear or re-check for errors? Default:false
|
Return value
arrayArray of error strings
InputfieldForm methods and properties
API reference based on ProcessWire core version 3.0.252