This browser does not support basic Web standards, preventing the display of our site's intended design. May we suggest that you upgrade your browser?

Adobe Acrobat 7.0

PDF Forms: Inserting an Automatic Date Field

You may want the date a user completes a form to display on a PDF form. You can insert a text field in your PDF form that will automatically insert the current date. The field uses a simple JavaScript at the document level. This document explains how to insert an automatic date field.

  1. Open the PDF form you would like to add a date to

  2. From the Tools menu, select Advanced Editing » Show Forms Toolbar
    The Forms toolbar appears.
    Forms toolbar

  3. Click TEXT FIELD TOOLText Field Button tool

  4. Position the cursor where you want the form field to begin 

  5. Click and drag the mouse until the form field is of desired size

  6. Release the mouse button
    The Text Field Properties dialog box appears.
    text fields properties dialog box

  7. On the General tab
    1. In the Name text box, type Today
    2. In the Common Properties section, select Read Only
      NOTES:
      It is selected when a check appears in the box next to it.
      This is necessary for calculated fields such as a date.

  8. On the Format tab
    1. From the Select format category pull-down list, select Date
    2. From the Date Options scroll box, select a date format option
      NOTE: This representation of the date format will be used when adding the JavaScript. An example of the date format is shown below the list.text fields properties dialog box_Format tab

  9. On the Calculate tab
    1. Select Custom calculation scripttext field properties dialog box_Calculate tab
    2. Click EDIT...
      The JavaScript Editor dialog box appears.
    3. Type the text shown here:
      var f = this.getField("Today");
      f.value = util.printd("mmm/d/yyyy", new Date());

      NOTE: The date format must match the format you selected in step 8.
    4. Click OK
      JavaScript Editor dialog box

  10. Click CLOSE

Excellence. Our Measure. Our Motto. Our Goal.