Ask a Question related to Adobe Acrobat Windows, Design and Development.
-
Lisa_ONeal@adobeforums.com #1
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
-
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... -
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... -
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! --... -
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... -
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? -
Dorian_Grey@adobeforums.com #2
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
-
Lisa_ONeal@adobeforums.com #3
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
-
Lisa_ONeal@adobeforums.com #4
Re: Dynamic Date Field
Dorian
I GOT IT! I had mismatched date field settings!! YEAH!
thanks again
Lisa
Lisa_ONeal@adobeforums.com Guest



Reply With Quote

