I have created a new text field into a pdf form and I have set it up to do a calculation with the formula:
event.value = (new Date()).toString();
AFDate_FormatEx("m/dd/yyyy");
It gives me the date. But It keeps this date for the pdf file. The only way I can get it to update is to open the prioperties of the field in edit mode, choose the Calculate tab, and click edit and OK to update the field.
Is there a way for me to make this date automatically update when opening the pdf file?
I am not literate in Acrobat, so an outline on doing this would really help.
Thanks,
John
this.getField("YourDateField").value = (new Date()).toString();
Set the formatting for the date with the field format property.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script