mirror of
https://github.com/silverstripe/silverstripe-userforms.git
synced 2024-10-22 17:05:42 +02: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) {
|
||||
$fieldValidation[$field->Name] = $errorMessage;
|
||||
$fieldValidationOptions['required'] = true;
|
||||
$fieldToAdd->addExtraClass('requiredField');
|
||||
}
|
||||
|
||||
// Add field to the form
|
||||
|
Loading…
Reference in New Issue
Block a user