diff --git a/docs/en/topics/form-validation.md b/docs/en/topics/form-validation.md index a99a3b421..66c8b50a5 100644 --- a/docs/en/topics/form-validation.md +++ b/docs/en/topics/form-validation.md @@ -25,7 +25,7 @@ when the form is submitted. new RequiredFields(array('MyRequiredField')) ); // Optional: Add a CSS class for custom styling - $form->dataFieldByName('MyRequiredField)->addExtraClass('required'); + $form->dataFieldByName('MyRequiredField')->addExtraClass('required'); return $form; } @@ -141,4 +141,4 @@ errors. ## Related - * Model Validation with [api:DataObject->validate()] \ No newline at end of file + * Model Validation with [api:DataObject->validate()]