Is it possible to format a date field in LiveCycle Designer so that a partial date can be entered if the full date is not known?
For example, if we want to know when a person bought their first car, they may know the precise date, the month and year, or just the year, so we would want to allow the date field to contain 05/MAR/1984 or xx/JAN/1999 or xx/xxx/2004 etc.
Any help greatly appreciated!
Thank you...Horrorhound.
Views
Replies
Total Likes
Hi,
I don't think it is possible to get the date field to do what you would like, the best solution I could think of would be to have 3 fields that are combined to make a single entry in a hidden field.
The user would see something like this
DropdownDayField (1-31) / DropDownMonthField(1-12) / 4 Digit Year field.
on change/exit of any of the fields you could run a script that checks which fields have been populated and create a date based on those values.
e.g. DropDownDayField = 3
DropDownMonthField = 5
4DigitYearField = 1967
hidden date Field == 03/05/1967
e.g. DropDownDayField = xx
DropDownMonthField = 5
4DigitYearField = 1967
hidden date Field == xx/05/1967
e.g. DropDownDayField = xx
DropDownMonthField = xx
4DigitYearField = 1967
hidden date Field == xx/xx/1967
This combined the Javascript Date object should be able to replicate what you would like.
Regards
Malcolm
Views
Replies
Total Likes