$fields->validate()
Checks for errors in all fields that store a value and throws an exception if there are any. Fields without a value (e.g. page and file lists) only report their errors for the publish gate and don't block saving.
$fields->validate(): void
Exceptions
| Type | Description |
|---|---|
Kirby\Exception\FormValidationException |