There is a requirement to make the date time field editable so that the user can enter the date also they can select the date from calender picker. For this have selected the option allow text entry-"yes" in pxDateTime(control). So if the user enters an invalid date(other than the one's mentioned in the control) pega by default gives validation message.
But this is not working on the first load of the screen. It simply takes any format entered and throws activity error pop up. But once i select any date in calender picker later enter a invalid date it is throwing the correct validation error. Im not sure how to handle this. Any insights on this would be great ! Thanks
***Updated by moderator: Lochan to add Categories***
We are using DateTime control as Text+calender and type as Date and when the user enters Date manually as "MMddyyyy" and click on the button Pega is throwing an Invalid date value message at the bottom of the field which blinks for a second and then sets the value to "mm/dd/yyyy". For this reason I need to click on the button twice to proceed.
eg: user entered 03022014. on click of submit button "Not a valid date value" blinks for a second and then the value is set as 3/2/2014.next when i click on submit i am able to proceed. We are using Pega 7.1.8 version
Can you suggest how to handle this so that the user can proceed on a single click
Posted: 6 years ago
Posted: 15 Feb 2017 9:23 EST
Chinmai Sravanthi Udayagiri (ChinmaiSravanthiU16946312)
The issue was not with the datetime component.On click of submit we were calling an obj-validate rule for checking date restrictions such as future date and the invalid date was passed to it and was throwing error. Have placed a precondition in activity step, to check if page has messages then exit. Now it is working fine.