These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

No 'on open' trigger in acrobat 9

juxey2000
Registered: May 7 2009
Posts: 5

I am trying to insert an auto date field into a textbox so that every time you open the form it put in that days date. I have looked on the web and have a javascript code that should wor but in the 'trigger' section of the properties form is say's select 'on open'. I do not have this option, I only have 'mouse up' 'mouse down' 'mouse enter' 'mouse exit' 'on fucus' and 'on blur'

How do I get my forms to auto insert todays date into a text box?

Thanks in advance.

My Product Information:
Acrobat Pro 9.0, Windows
suewhitehead
Registered: Jun 3 2008
Posts: 232
Here is how to do it in Acrobat 9 Professional:

Today’s Date Field

In Acrobat 9 Pro, put the javascript in a document level script like this:

var f = this.getField("Today"); f.value = util.printd("mmmm dd, yyyy", new Date());

Notice that there is not a function name here. Without a function name, the script will run every time the form is opened.
lpacini
Registered: Mar 13 2009
Posts: 29
Sue - Is there a way to prevent the date from changing each time the form is opened?

Lauren