diff --git a/src/Forms/FormField.php b/src/Forms/FormField.php index 5a9b65bef..ca9034049 100644 --- a/src/Forms/FormField.php +++ b/src/Forms/FormField.php @@ -1609,9 +1609,11 @@ class FormField extends RequestHandler */ public function getSchemaValidation() { + $validationList = []; if ($this->Required()) { - return [ 'required' => true ]; + $validationList['required'] = true; } - return []; + $this->extend('updateSchemaValidation', $validationList); + return $validationList; } }