mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update form-validation.md
Minor typo, missing a '
This commit is contained in:
parent
39a4aabcdc
commit
1a95be7e60
@ -25,7 +25,7 @@ when the form is submitted.
|
|||||||
new RequiredFields(array('MyRequiredField'))
|
new RequiredFields(array('MyRequiredField'))
|
||||||
);
|
);
|
||||||
// Optional: Add a CSS class for custom styling
|
// Optional: Add a CSS class for custom styling
|
||||||
$form->dataFieldByName('MyRequiredField)->addExtraClass('required');
|
$form->dataFieldByName('MyRequiredField')->addExtraClass('required');
|
||||||
return $form;
|
return $form;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -141,4 +141,4 @@ errors.
|
|||||||
|
|
||||||
## Related
|
## Related
|
||||||
|
|
||||||
* Model Validation with [api:DataObject->validate()]
|
* Model Validation with [api:DataObject->validate()]
|
||||||
|
Loading…
Reference in New Issue
Block a user