From 45310218717c7f186cd75f14cc5454ffb753ef35 Mon Sep 17 00:00:00 2001 From: Arlen Johnson Date: Mon, 15 Dec 2025 17:25:35 -0500 Subject: [PATCH] Ensure required MVEA fields are marked 'required' in the DOM for CoreEnroller (CFM-324) --- .../CoreEnroller/templates/element/mveas/fieldset-field.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/plugins/CoreEnroller/templates/element/mveas/fieldset-field.php b/app/plugins/CoreEnroller/templates/element/mveas/fieldset-field.php index e8e7e53e6..ea15b31d8 100644 --- a/app/plugins/CoreEnroller/templates/element/mveas/fieldset-field.php +++ b/app/plugins/CoreEnroller/templates/element/mveas/fieldset-field.php @@ -47,6 +47,9 @@ $isRequiredFromValidationRule = !$modelTable->getValidator()->field($field)->isEmptyAllowed(); } +// Is the field required? +$options['required'] = $isRequiredFromValidationRule; + // Do we have a default value configured? // Either a value or an Environmental Variable, // Each default value is mutually exclusive to the rest. We do not have to worry about a conflict.