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

Calculated Fields Events Firing

lstreet
Registered: Apr 25 2007
Posts: 2

We have a requirement to execute specific code only if a calculated field changes. We have attempted to implement this, but so far none of the Adobe event triggers will cater for this - how does Adobe intend this sort of functionality to be written?

My Product Information:
Acrobat Pro 8, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Use a calculation script, make sure it's the last in the calculation order.

You'll need to create a object that tracks the current values of the fields you're interested in. Then place code in this last calc event to compare the previous values with the current values.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script