diff --git a/src/main/resources/templates/fragments/inputs/date.html b/src/main/resources/templates/fragments/inputs/date.html index 0533b985..b70a9b0a 100644 --- a/src/main/resources/templates/fragments/inputs/date.html +++ b/src/main/resources/templates/fragments/inputs/date.html @@ -4,9 +4,9 @@ hasLabel=${!#strings.isEmpty(label)}, hasAriaLabel=${!#strings.isEmpty(ariaLabel)}, requiredInputsForFlow=${requiredInputs.get(flow)}, - isRequiredInput=${(requiredInputs != null && requiredInputs.getOrDefault(inputName + 'Month', false)) || - (requiredInputs != null && requiredInputs.getOrDefault(inputName + 'Day', false)) || - (requiredInputs != null && requiredInputs.getOrDefault(inputName + 'Year', false)) || + isRequiredInput=${(requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName + 'Month', false)) || + (requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName + 'Day', false)) || + (requiredInputsForFlow != null && requiredInputsForFlow.getOrDefault(inputName + 'Year', false)) || (required != null && required)}, hasErrorMonth=${errorMessages != null && !#arrays.isEmpty(errorMessages.get(inputName + 'Month'))}, hasErrorDay=${errorMessages != null && !#arrays.isEmpty(errorMessages.get(inputName + 'Day'))},