MINOR: added requiredField class to a field which is required for styling purposes

This commit is contained in:
Will Rossiter 2009-07-16 04:31:46 +00:00
parent 84436d2bfb
commit 1ba4972e00

View File

@ -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