New Forum | Previous | Next | (P-PDF) Acrobat 6.0
Topic: creating form
Conf: (P-PDF) Acrobat 6.0, Msg: 168696
From: george
Date: 1/31/2009 02:33 PM
A calculation script is triggered whenever any field value changes. When the document is opened, no field value changes, so your calculation script is not triggered.
You can set up code that runs when the document is opened by placing it in a document-level JavaScript outside of a function definition. For example:
getField("Text1").value = util.printd("mm/dd/yyyy", new Date());
George