diff --git a/code/FormField/UserFormsCheckboxSetField.php b/code/FormField/UserFormsCheckboxSetField.php index 43fb595d0..6338ff831 100644 --- a/code/FormField/UserFormsCheckboxSetField.php +++ b/code/FormField/UserFormsCheckboxSetField.php @@ -47,7 +47,7 @@ public function getOptions() public function getValueForValidation(): mixed { - $value = $this->Value(); + $value = $this->getValue(); if (is_iterable($value) || is_null($value)) { return $value; } diff --git a/templates/SilverStripe/UserForms/FormField/UserFormsCheckboxSetField.ss b/templates/SilverStripe/UserForms/FormField/UserFormsCheckboxSetField.ss index 52e691e9f..34400836d 100644 --- a/templates/SilverStripe/UserForms/FormField/UserFormsCheckboxSetField.ss +++ b/templates/SilverStripe/UserForms/FormField/UserFormsCheckboxSetField.ss @@ -1,7 +1,7 @@ <% if $Options.Count %> <% loop $Options %>