DateTime control with custom format gets corrupted on refresh
SummaryWhen 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 MessagesNot Applicable
Steps to Reproduce1) 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 CauseIn 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.
Published May 2, 2017 - Updated June 19, 2017