diff --git a/app/templates/element/form/nameDiv.php b/app/templates/element/form/nameDiv.php index 9ae815009..d9e0b5e86 100644 --- a/app/templates/element/form/nameDiv.php +++ b/app/templates/element/form/nameDiv.php @@ -63,9 +63,11 @@ // from FieldHelper, then overriding that value if an argument was passed in. $isRequired = $this->Field->isReqField($fn); -if(isset($vv_field_arguments['required'])) { +if (isset($vv_field_arguments['required'])) { // Use this value (which could be either false or true) $isRequired = $vv_field_arguments['required']; +} elseif (isset($vv_field_arguments['fieldOptions']['required'])) { + $isRequired = $vv_field_arguments['fieldOptions']['required']; } // Extra class required for the grouped controls elements