How to Insert a Date Field in Adobe Acrobat

With formatting and JavaScript, you can insert a working date field into your Adobe Acrobat 8 Professional form. Every time the PDF is open, the current date will be displayed in this field. Follow the directions below to insert a date field in Adobe Acrobat.

Things You'll Need

  • Adobe Acrobat 8 Professional
Show More

Instructions

    • 1

      Open Adobe Acrobat 8 Professional, and start a new blank PDF, or open an existing PDF from your files to which you want to insert a date field.

    • 2

      Select the "Text Field Tool" from the Forms toolbar. It is the sixth button from the left side of the toolbar and is depicted by a box with the letter "T" inside of it.

    • 3

      Use the click and drag on the PDF where you want to insert the date field. The "Text Field Properties" dialog box will pop up when you are finished drawing.

    • 4

      Click the "General" tab from the top of the "Text Field Properties" box and set the general settings. Type "Today" in the "Name" text box and add a checkmark for the "Read Only" option.

    • 5

      Choose the "Format" tab from the top of the dialog box. Choose "Date" from the "Select format" drop-down list. The "Date Options" text box will display, and you can click to choose how you want the date displayed.

    • 6

      Pick the "Actions" tab from the "Text Field Properties" dialog box. Choose "Page Open" as the "Select Trigger" option and "Run a JavaScript" for "Select Action." Click the "Add" button to open the "JavaScript Editor."

    • 7

      Type "var f = this.getField("Today"); f.value = util.printd("mmm/d/yyyy", new Date());" (without outside quotes) in the textbox of the dialog box. Click "OK" and "Close" to close the two open dialog boxes. Now each time the page is open the current date will be displayed in the date field.

Tips & Warnings

  • If you don't see the forms toolbar, you can choose the "View" menu, point to "Toolbars" and click "Forms" to display it.

Related Searches:

Comments

  • pdfguru Apr 19, 2010
    Step 6 is simply and plainly wrong! The PageOpen event is accessed from the Pages Panel: After selecting the page (normally, it is the page on which the document opens, and that is the first page), select "Page Properties..." in the tools menu of the Pages panel. In the dialog switch to the Actions tab, and now, you can specify running a JavaScript on page open. The code in step 7 is correct, however.
  • digikrynary Aug 25, 2009
    you probably have acrobat 9. in that you would use the calculate tab, and click "Custom calculation script" and edit the code to teh above code: var f = this.getField("Today"); f.value = util.printd("mmm/d/yyyy", new Date());

You May Also Like

Related Ads

Featured