Question

pxDateTime control validating day as month (XX/13/XXXX is not a valid date value)

Hello everyone!

We are working on a POC for some forms to capture data but we are stuck with this validation. Our requirement is to ask for a date with three Dropdowns instead of the typical calendar controler. We have configured it in this way:

But the control is taking the Day value as Month, so whenever we select a date after 12 it triggers the error "is not a valid date value" as shown here:

We have tried changing the Read-Only Format to a Custom one but that doesn't work. I also have looked for the references on the validation but just found the PartialDate Edit Input rule (Pega-RULES:08-01-01) which could be related, but we are looking for something different that modifying Pega's code, if possible.

Does anyone know how he can modify this validation to not trigger on days after 12?

Thank you so much!

***Edited by Moderator Marissa to update platform capability tags****

Comments

Keep up to date on this post and subscribe to comments

Pega
December 6, 2018 - 10:46pm

Hi, I am not able to recreate this issue in version 8.1 and I have configured same way as you have. Could you confirm few settings on your control:

1) Is the control referring to a date property

2) is there any action set configured for "change" event

3) the read-only format is configured as following:

December 7, 2018 - 10:57am
Response to Chithra

Hello!

I am also using 8.1. I have configured the settings as you mentioned but it's still failling:

1) Is the control referring to a date property

Yes

2) is there any action set configured for "change" event

There are no action sets for that control.

3) the read-only format is configured as following: