From 201b8e775f0c129cf652f6f9c38b02b022445094 Mon Sep 17 00:00:00 2001 From: Alex Gonzalez Date: Fri, 10 May 2024 15:50:45 -0700 Subject: [PATCH] Show required dates (#554) --- src/main/resources/templates/fragments/inputs/date.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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'))},