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.
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.