Skip to content

Commit

Permalink
DOC Add field validation
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Oct 2, 2024
1 parent 2cc7091 commit c5339f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion en/02_Developer_Guides/03_Forms/01_Validation.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class CustomNumberField extends NumericField
{
// ...

public function validate($validator)
public function validateWithFormValidator($validator)
{
if ((int) $this->Value() === 10) {
$validator->validationError($this->Name(), 'This value cannot be 10');
Expand Down

0 comments on commit c5339f7

Please sign in to comment.