From 1a95be7e6053dd49f19727efd5ebe9f0a666cf6c Mon Sep 17 00:00:00 2001 From: Stephen Shkardoon Date: Tue, 9 Apr 2013 18:44:47 +1200 Subject: [PATCH] Update form-validation.md Minor typo, missing a ' --- docs/en/topics/form-validation.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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()]