modified, expanded error messaging
This commit is contained in:
parent
78580d8666
commit
1f174b98f6
1 changed files with 17 additions and 4 deletions
|
@ -73,15 +73,28 @@
|
||||||
<p>
|
<p>
|
||||||
<#--below shows examples of both printing out all error messages and checking the error message for a specific field-->
|
<#--below shows examples of both printing out all error messages and checking the error message for a specific field-->
|
||||||
<#list submissionErrors?keys as errorFieldName>
|
<#list submissionErrors?keys as errorFieldName>
|
||||||
${errorFieldName}: ${submissionErrors[errorFieldName]}
|
<#if errorFieldName == "startField">
|
||||||
<br/>
|
<#if submissionErrors[errorFieldName]?contains("before")>
|
||||||
|
The Start Year must be earlier than the End Year.
|
||||||
|
<#else>
|
||||||
|
${submissionErrors[errorFieldName]}
|
||||||
|
</#if>
|
||||||
|
<br />
|
||||||
|
<#elseif errorFieldName == "endField">
|
||||||
|
<#if submissionErrors[errorFieldName]?contains("after")>
|
||||||
|
The End Year must be later than the Start Year.
|
||||||
|
<#else>
|
||||||
|
${submissionErrors[errorFieldName]}
|
||||||
|
</#if>
|
||||||
|
</#if>
|
||||||
</#list>
|
</#list>
|
||||||
<#--Checking if role field is empty-->
|
<#--Checking if role field is empty-->
|
||||||
<#if lvf.submissionErrorExists(editSubmission, "roleLabel")>
|
<#if lvf.submissionErrorExists(editSubmission, "roleLabel")>
|
||||||
Specify a role for this activity.
|
Please specify a role for this activity.
|
||||||
</#if>
|
</#if>
|
||||||
|
<#--Checking if Name field is empty-->
|
||||||
<#if lvf.submissionErrorExists(editSubmission, "activityLabel")>
|
<#if lvf.submissionErrorExists(editSubmission, "activityLabel")>
|
||||||
Enter a name for the activity.
|
Please enter or select a value in the Name field.
|
||||||
</#if>
|
</#if>
|
||||||
|
|
||||||
</p>
|
</p>
|
||||||
|
|
Loading…
Add table
Reference in a new issue