Support Article
Error message for invalid date format is not localizing
SA-15526
Summary
Propertyset message is not localizing on date field when showing harness on pyDisplayHarness instead of pyWorkPage
Error Messages
is not a valid date value
Steps to Reproduce
Create a Harness which will refer pyDisplayHarness page level.
Create a section with two date fields and refer in the above harness.
Change the browser langugae and open the above section and give the wrong date format and check the property set message.
Root Cause
In csvalid HTML rule pega is performing lookup by using hard-coded “pyWorkPage”. This will not work for pages other than pyWorkPage.
Resolution
Perform the following local-change:
Place the below script in CustomValidators and save as this into your current ruleset.
--------------------------------------------------------------------------------------------------------------------------
<script>
var date_dateMsgStr = "<pega:lookup property='.pyMessageLabel' value='is not a valid date value' mode='literal' />";
</script>
---------------------------------------------------------------------------------------------------------------------------
Published January 31, 2016 - Updated October 8, 2020
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.