I am playing around with Adobe and I am trying to create a form that pre-populates the date in the associated form field, in mmmm-d-yyyy format. I got the script to work yesterday, but today I tried opening the document and the date still had yesterday's date. I want to modify the script so that it always changes the date when I open the document. For instance, if I created and saved the form on January 8th, but didn't re-open the form until january 10th, I would like "January 10, 2015" to be populated
These are the steps I took to do this:
-Click on tools > forms > edit
-Click "Add New Field" and select "Text Field"
-Select where you would like to place the text and type in
Today"
-A yellow popup should appear that says "All Properties". Click on that and the Field Properties Tab should appear. If the yellow box disappears, you can access the Field Properties tab by double clicking on the Text Box.
- (I performed the editting to the text so the format would appear in mmmm-d-yyyy format, and also selected "Read Only")
Bring up the field properties and select the "Calculate" tab, then select to use a custom calculation script and use the following line:
event.value = util.printd("m/d/yyyy", new Date());
I am just stumped. Please keep in mind I am not very good at Adobe, and the majority of what I performed was found by searching it on google, and reading/watching videos on it. But I don't understand the appropriate steps to make my formula work as I indicated above.
Can any techy people really give me a hand here? I would appreciate it if the person could give me steps to how to perform the function, rather than using adobe language that I may or may not know how to access (Document Javascript - I have some familiarity). I know its possible to do this, and I appreciate any advice.
