Support Article
DateTime control is updated with current date on section refresh
SA-81346
Summary
DateTime control is updated with the current date on section refresh when an incorrect date format is entered.
Error Messages
Not Applicable.
Steps to Reproduce
- Create a section rule
- Add a DateTime control and one dropdown control
- Configure the DateTime control to accept user text
- Configure OnChange event-action to refresh current section on drop down configuration
- Run the section and enter an invalid date format. For example, 09/2423424/2019 or 887878/09/2019
- Select a new value for dropdown after which section refresh is triggers and the DateTime value is updated with the current date
Root Cause
Inconsistent processing of incorrect date by native JavaScript.
Resolution
Perform one of the below local-changes to restrict user to enter invalid dates:
- Change Allow text entry to No
- Change Display mode to Text Input or Drop Down Lists
Published August 15, 2019 - Updated December 2, 2021
Have a question? Get answers now.
Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.