Support Article
Date format changes after validation
SA-26218
Summary
Date format changes after validation.
User is displaying date fields as DD-MMM-YYYY format.
After any client side validation (for example set blank values for required fields), the date format changes on the screen and the dates are redisplayed as MM/DD/YYYY.
Error Messages
Not Applicable.
Steps to Reproduce
1. Configure a text field with "Required" validation and make this validation client side.
2. Add a date time field with format "DD-MMM-YYYY".
3. Run the use-case and don't enter value for text field. A client side validation will run and observe that date format is lost.
Root Cause
The "resetReadOnlyValues" property value is not being updated because data-display-value attribute is not being set for the Date control in 'pega_ui_doc_submit' JavaScript file.
Resolution
Apply HFix-28750.
Published August 4, 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.