Ask a Question related to Adobe Acrobat Windows, Design and Development.

  1. #1

    Default Dynamic Date Field

    Hello
    I am using Adobe Pro 6 and want "Today's Date" to auto load in a PDF form we are using.

    I found a 'fix' but I must be making it harder than what it is - because I am not finding the menu selections noted. I tried the Javascript for this too, but again, I don't see the option selections. HELP!

    This is what I found within the forum

    * * here I don't see this "CHOOSE TEXT FORM THE TYPE POP-UP MENU" Creating the Text Field To create a dynamic date field, you must first create the text field in which the date information will appear:
    1. Open the PDF file in which you want the date to appear.
    2. Select the Forms tool and draw a form field.
    3. In the Field Properties window, name the field (e.g., "Today's Date").
    .. Choose Text from the Type pop-up menu.
    5. Click the Appearance tab and specify any appearance properties you want for the field.
    6. Click the Format tab, select Date from the Category list, then select a date format from the Date Options list.
    7. Click OK.

    * **For this one, I don't see SET PAGE ACTION when I select DOCUMENT from the MENU BAR. I see PAGES/SET PAGE TRANSITIONS

    Adding the System Date After creating the field, set it up to populate with the system date when you open the PDF file:
    1. Choose Document > Set Page Action.
    2. Select Page Open in the When This Happens list, and then click Add.
    3. Choose JavaScript from the Type pop-up menu, and then click Edit.
    4. Copy or type the text below into the Acrobat Forms JavaScript window (Acrobat 4.x) or the JavaScript Edit window (Acrobat 5.x). The "//" and "/*" characters are comments that will be ignored by the JavaScript parsing engine, but you should include them when you copy or type the Comment text into the JavaScript window.
    JavaScript text Comment text

    var d = new Date(); //creates a new date

    var dd = d.getDate(); //retrieves the date from the systemvar mm =

    d.getMonth() + 1; /* retrieves the month. JavaScript starts counting at zero, so add a 1 to start January at 1*/

    var yy = d.getYear(); //retrieves the year

    var t = this.getField("Today's Date"); //or whatever you have named your text field above in Step 3

    var now = mm + " " + dd + " " + yy; //formats the datet.value = now; /*puts the value retrieved from the system in the Today field*/

    Thanks
    Lisa
    Lisa_ONeal@adobeforums.com Guest

  2. Similar Questions and Discussions

    1. Automatic Date Field
      Is there a way to have a Date field automatically set the date to today's date in a form I created in Acrobat 7? I have the date field defined as a...
    2. Converting a text field to a date field - FM6
      I need to convert a Text field containing both auto and manually entered dates over to a Date field. The records that were autoentered move over...
    3. Date of last change in a certain field
      Hi, I'd like to generate the present date in one field, when another field changes. Could anybody tell me how to do that? Thanx in advance! --...
    4. Date field in DB
      I am trying to compare the current date() with the date in an access db to pull out only records where the date is later than the todays date (so...
    5. Linking date field to text field entry
      Is there a way to setup a date field that will automatically enter the date when any information is entered into a field next to it?
  3. #2

    Default Re: Dynamic Date Field

    These instructions are for Acrobat 5, so for Acrobat 6 Pro

    For the first part use the Text Field Tool - the properties are fairly intuitive.

    For the second part, open the Pages pane and right-click on the page and choose Properties. You will see here the Actions tab.
    Dorian_Grey@adobeforums.com Guest

  4. #3

    Default Re: Dynamic Date Field

    Dorian
    thanks
    I finally found the Pages Pane. I copied/pasted the script, but still no go.

    On the first part, which seems the easiest, I
    - added a text field box
    - named it Today's Date
    - changed format to mmmm/dd/yyyy

    Shouldn't this do it all? Or do I still have to add "Do when Page Opens" function?
    Lisa_ONeal@adobeforums.com Guest

  5. #4

    Default Re: Dynamic Date Field

    Dorian
    I GOT IT! I had mismatched date field settings!! YEAH!

    thanks again
    Lisa
    Lisa_ONeal@adobeforums.com Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139