mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Update form-validation.md missing ' in line 27
Missing closing ' in $form->dataFieldByName('MyRequiredField')
This commit is contained in:
parent
0c2332f8bd
commit
94ba13cefa
@ -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()]
|
||||
* Model Validation with [api:DataObject->validate()]
|
||||
|
Loading…
Reference in New Issue
Block a user