Skip to main content

This content has been archived and is no longer being updated. Links may not function; however, this content may be relevant to outdated versions of the product.

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>
---------------------------------------------------------------------------------------------------------------------------
Suggest Edit

Published January 31, 2016 - Updated October 8, 2020

Did you find this content helpful? Yes No

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us