mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 15:05:42 +00:00
MINOR: added requiredField class to a field which is required for styling purposes
This commit is contained in:
parent
84436d2bfb
commit
1ba4972e00
@ -211,6 +211,7 @@ class UserDefinedForm_Controller extends Page_Controller {
|
|||||||
if($field->Required) {
|
if($field->Required) {
|
||||||
$fieldValidation[$field->Name] = $errorMessage;
|
$fieldValidation[$field->Name] = $errorMessage;
|
||||||
$fieldValidationOptions['required'] = true;
|
$fieldValidationOptions['required'] = true;
|
||||||
|
$fieldToAdd->addExtraClass('requiredField');
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add field to the form
|
// Add field to the form
|
||||||
|
Loading…
x
Reference in New Issue
Block a user