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

Delayed Calculations?

rojolley
Registered: Mar 11 2010
Posts: 4
Answered

I have a simple script that is subtracting "Field A" from "Field B" to get "Field C"

"Field A" is a user input and "Field B" is read only determined with a simple addition script of other user input fields.

The problem is that as "Field B" changes from the addition of the other user input fields, "Field C" is always one calculation behind.

Is there a way to sequence scripts in fields so that as soon as a value changes, like in "Field A" or "Field B", that "Field C" would automatically change??

Make Sense?

I'm not using varibles right now so I'm not sure if that would help.

Thanks in advance for your time.

-Robert

i can attach code if necessary, but like i said, it's just simple addition and subtraction.

My Product Information:
Acrobat Pro 9.2, Windows
rojolley
Registered: Mar 11 2010
Posts: 4
Wait, nevermind I found it.

Page 91 in the "Developing Acrobat Applications: Using Javascript" .pdf

Reading is so helpful.
jimhealy
Team
Registered: Jan 2 2006
Posts: 146
You need to find the Set Field Calculation Order, but I can't remember where it is offhand in your version.

Jim Healy
FormRouter, Inc.
Check out our FREE Advanced Acroform Toolset:
http://www.formrouter.com/tools

Jim Healy, Founder & CEO FormRouter Inc.
Chapter Leader AUG RTP NC
http://www.formrouter.com

gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
In Acrobat for forms created in Acrobat "Form => Edit form in Acrobat" "Edit => Edit fields => Set calculation order".

George Kaiser