From 94ba13cefa3550420827ede9117a8d4e7b329de5 Mon Sep 17 00:00:00 2001 From: muskie9 Date: Wed, 25 Jun 2014 11:45:22 -0500 Subject: [PATCH] Update form-validation.md missing ' in line 27 Missing closing ' in $form->dataFieldByName('MyRequiredField') --- 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 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()]