Answered
I have a PDF form which users currently have to manually enter dates in each day of the week. I would like to make it so a user enters a date in the first box (date1) and the rest of the fields are populated with the next days so that
date1 = 02/22/2009 (entered manually)
date2 = date1 + 1 day (calculated)
date3 = date1 + 2 days (calculated)
date4 = date1 + 3 days (calculated)
and so on. Can anybody tell me how to accomplish this?
Thanks.
This can be done with JavaScript . It's a bit of ocde and field naming is important for it to work, so maybe a bit complex for a complete solution in a forum setting like this. This is hours of work for someone who really knows JS already.
Here is an article on working with dates and times in Acrobat using JavaScript that should get you started. Whne you have some code and a specific problem then this is a good place to get pinpoint type help.
http://www.acrobatusers.com/tutorials/2006/date_time_part2/
Hope this helps,
Dimitri
WindJack Solutions
www.pdfscripting.com
www.windjack.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com