These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Date picker for Acroform

acrojack
Registered: Aug 16 2010
Posts: 28
Answered

I've created an interactive pdf with Acrobat 9 Pro which has embedded java script. I would like to add a date picker field which allows the user to select a date from a pop up calendar. Is there an easy to use plug in or script avaiable for this?
 
Alternatively, realizing LiveCycle has a date picker field built in, I've tried to convert the acroform to livecycle. However, I'm having trouble converting the java script code so that it will work in livecycle. Is there a good resource to convert acroforms to livecycle?
  

My Product Information:
Acrobat Pro 9.0, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Accepted Answer
See Basic Acroforms Toolset – Create Field Validations and Date Pickers Without Writing Code by Jim Healy. The link includes the necessary scripts that you will need to install.

George Kaiser

acrojack
Registered: Aug 16 2010
Posts: 28
Thank you George. I was able to follow the instructions to add the widget to my acroform and it works well.

However I began having an new issue with the version which has Reader Extensions applied. After one user completes the form and emails it to the another, the attached file produces the message, "This document contained certain rights to enable special features in Adobe Reader. The document has been changed since ti wsa creatred and these rights are no longer valid. Please contact the autheor for the original version of this docuemnt." This didn't happen previous to applying the date picker widget. Am I doing something out of order or not configuring it correctly?

Current Order
1 - Develop form in Acrobat.
2 - Apply Date picker widget to date field.
3 - Apply Reader Extension to file.
4 - User completes and emails to another user.
seegs17
Registered: May 24 2011
Posts: 2
I successfully inserted the date picker into my form but the dates available are only Jan-Dec 2011. I need the calendar to reach back one year from the date someone accesses it. Can I change the code somewhere to make it do that? Can I also make the calendar look forward beyond 2011? If I leave it as is will it change over to 2012 in January?

I'm using Acrobat Pro 9.0 on Windows XP (for the next month or so until I upgrade to Windows 7).

Thanks!

Seegs

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Why not try selecting the year field and typing in a different year?

I think you will find you can enter almost any 4 digit year and the dates for the month will change to those for that year and month.

If you review the JavaScript code, you see there is no hard coded year and the dates for the month are computed based on the year field.

George Kaiser

seegs17
Registered: May 24 2011
Posts: 2
Geez, it didn't occur to me to type in a different year! I was expecting a drop-down or scroll list. I did notice that the code did not include year parameters; however, we're asking people to enter a date for training that has to be completed every 12 months, so we don't want them to be able to select a date that is older than that (or in the future). Ideally, we would like to program the code to limit the user to the most recent 12-month period.

Seegs

mjohnston46
Registered: Sep 29 2011
Posts: 1
I've been successfully using Acroforms Toolset to add a date picker to pdf forms in Acrobat X Pro on a Mac. I now have a multi-page pdf and the date picker options box won't allow me to select a field, Field to attach Calendar to box does not show any fields. Any suggestions welcome.

Mike Johnston