PDA

View Full Version : Allow DateField to accept invalid dates...



jflosier
26 Oct 2007, 8:35 AM
Hi,

I want to allow the DateField to accept values other than numbers...
For example, I want to allow dates to have wildcards such as yyyy/mm/01 which means the 1st day of the current month of the current year, etc.

Unfortunately, when I put this in the value of my input text field, it gets cleared out by some input validation applied on the field...is there a way to avoid this?

Thanks in advance.

jflosier
26 Oct 2007, 8:56 AM
Nevermind, I found a workaround...I fixed it by getting the value and setting it after the DateField has been applied to the input field. Works like a charm.