diff --git a/docs/en/topics/form-validation.md b/docs/en/topics/form-validation.md index df6416f9a..209cecd96 100644 --- a/docs/en/topics/form-validation.md +++ b/docs/en/topics/form-validation.md @@ -24,7 +24,7 @@ class. new RequiredFields(array('MyRequiredField')) ); // Optional: Add a CSS class for custom styling - $form->dataFieldByName('MyRequiredField)->addExtraClass('required'); + $form->dataFieldByName('MyRequiredField')->addExtraClass('required'); return $form; } @@ -74,4 +74,4 @@ Disable for a specific form: ## Related - * Model Validation with [api:DataObject->validate()] \ No newline at end of file + * Model Validation with [api:DataObject->validate()]