Support Article

DateTime control with custom format gets corrupted on refresh



When selecting "Display value using read-only formatting" option on a Date field with a refresh enabled and entire page refresh is performed and the resulting HTML DOM is displayed incorrectly.

Error Messages

Not Applicable

Steps to Reproduce

1) Create a section with date time control. Enable "Display value using read-only formatting" in Presentation tab.
2) Configure, On change-Refresh section action.
3) At run time, enter an invalid value to the date field, say "aagdjd", that is, any text invalid text, Click outside , the section refreshes and we see the date field takes up the <div> tag value:

Root Cause

In this issue, when user enters an invalid date and refreshes the section,exception is thrown in generateDatePicker RUF when currProp.toDate() is called.

To fix this issue, exception handling can be done while calling currProp.toDate() in generateDatePicker RUF.


Apply HFix-34057.

Published May 2, 2017 - Updated June 19, 2017

Have a question? Get answers now.

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