Is there a way to display a calendar from a date/time field that is limited to 6 months from the current date? I am creating an order form for food products and I would like the user to only be able to choose a date that is within 6 months from the current date.
Thanks.
Views
Replies
Total Likes
Hi,
This example might get you started, but it'll only work for static forms. http://cookbooks.adobe.com/post_An_alternative_Date_Picker_for_LiveCycle_Designer-18455.html
Otherwise I think you are out of luck.
Regards
Bruce
Views
Replies
Total Likes
If you are using a dynamic form you cannot stop the calendar from going to any date but you can use the Date2Num function in the exit event to clear the calendar and give a message if someone enters a date outside the range you want.
Views
Replies
Total Likes
I'm a newbie as far as Livecycle / Javascript is concerned - are you able to expand on the code required to make this work?
Thanks for your help.
Views
Replies
Total Likes
See here: http://forums.adobe.com/message/4235514#4235514 for an example of the code you can use.
Views
Replies
Total Likes
Thanks - that is what I want the field to do, but if I want the cutoff date to change according to the 'current date' (within 6 months from when the form is opened), how does that work?
Views
Replies
Total Likes
To get the current date you use:
Date2Num(date(), "DD/MM/YY")
Views
Replies
Total Likes