From 28900e384c178ab2448d14acb30169956892a950 Mon Sep 17 00:00:00 2001
From: tworrall ${errorMessage}
+ <#--below shows examples of both printing out all error messages and checking the error message for a specific field-->
+ <#list submissionErrors?keys as errorFieldName>
+ <#if errorFieldName == "startField">
+ <#if submissionErrors[errorFieldName]?contains("before")>
+ The Start Year must be earlier than the End Year.
+ <#else>
+ ${submissionErrors[errorFieldName]}
+ #if>
+ ${formHeading} ${editConfiguration.subjectName}
-<#if errorNameFieldIsEmpty??>
- <#assign errorMessage = "Enter a name for the grant." />
-#if>
-
-<#if errorMessage?has_content>
+<#--Display error messages if any-->
+<#if submissionErrors?has_content>
-
+ <#elseif errorFieldName == "endField">
+ <#if submissionErrors[errorFieldName]?contains("after")>
+ The End Year must be later than the Start Year.
+ <#else>
+ ${submissionErrors[errorFieldName]}
+ #if>
+ #if>
+ #list>
+ <#--Checking if Name field is empty-->
+ <#if lvf.submissionErrorExists(editSubmission, "grantLabel")>
+ Please enter or select a value in the Grant Name field.
+ #if>
+
+
- - - (Verify this match) -
- - <#--Field value populated by javascript above--> - -