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 Reproduce
- Create a section with date time control. Enable "Display value using read-only formatting" in Presentation tab.
- Configure, On change-Refresh section action.
- At run time, enter an invalid value to the date field, say "aagdjd", ie 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 April 20, 2017 - Updated April 25, 2017