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

Date Picker

mrorange
Registered: Jul 22 2008
Posts: 17

Hi. Here's my situation. I have just discovered Adobe Forms and Adobe Life Cycle. I built a form in Acrobat 8 Pro. Then I noticed that Life Cycle has that cool feature that give you a date picker for a Date field. So I want to add that feature to the form I built in Acrobat 8.

I tried importing my for into Life Cycle and was able to add the date picker, but my java script for my submit button now does not work. Also, I can not edit fields of the imported file with Acrobat anymore.

So is there some way to add a date picker to my form built in Acrobat 8?

Thanks!

Orange

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
There is no date picker available for forms created in Acrobat like the one available with Designer. I've seen implementations constructed by using form fields (e.g., a button for each day of the month, etc.) that work, but it's a bit cumbersome to do yourself. For a commercial example: http://www.ezdatasoft.com/EzDatePicker.php

I will often simply use a combo box for the day, month, and year and validate the date after the selection is made.

George
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
Here is a link to a free JavaScript but it is quite big and long. One has to have all the fields in the PDF and the pop-up calendar is moved as needed. The sample PDF form seems to be lost but here is a link to the JavaScript code to make it work. [url=http://forum.planetpdf.com/wb/default.asp?action=9&read=50320&fid=34#137135]Calendar Date Picker[/url]

George Kaiser

George_Johnson
Expert
Registered: Jul 6 2008
Posts: 1876
G,

That file is still available in one of your postings at the PlanetPDF forums, but you have to go through the forum proper.

George
engine1589
Registered: Feb 10 2010
Posts: 6
I was given a date picker javascript from the website people here at work but I don't know how to correctly add it into the incident report form I am building since what ever I am doing doesn't seem to be working. Is there step by step instructions for how to add javascript for this? Please let me know.

Thank you.
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
This is not a simple cut and paste some code or a lot of code. You need to copy all of the hidden pop-up calendar fields, copy the document level script into the PDF, and adding the control field and script to display the calender.

You need to download a file with the code and fields and then study how it works. You could also insert the file with the document level script and all the fields into your form. This will install or add the document level script and provide all of the hidden fields to your form, but you will have to move the hidden calendar and control button to one of your form pages, and then you can delete the added page.

George Kaiser