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.
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:
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.
Published June 19, 2017 - 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.