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

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

Was this useful?

0% found this useful

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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