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

Delay in calculating last field subtracted with simple field notation

raelehman
Registered: Apr 8 2008
Posts: 4
Answered

I have a form that is pretty much a grid of numbers. There are "totals" rows and columns, and I am using simple field notation to add up these totals. A couple of these "totals" rows are then subtracted from another row.

The problem I am having is that for some reason the last form field entered does not seem to apply to the calculated total immediately after tabbing or clicking out of the field. However, next time I enter a number, the calculation happens and everything is correct.

This only seems to happen with fields where subtraction is involved, the fields that are just added together are fine.

There are no "dots" in the field names, and the calculated fields are all read-only.

Another strange happening is that I get a warning sound from Windows (the one that usually happens when I try to do something that can't be done) every time I enter a value in a field. However the warning sound goes away when I enable Reader editing capabilities and fill out the form in Reader. Rather strange, I'd love to hear an explanation if anyone has one!

I am using Acrobat 8.1.2 Pro on Windows XP.

Thanks

My Product Information:
Acrobat Pro 8.1.2, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
You have a calculation order problem. To set the calculation order

Enable the "object select" tool, then from the "Forms" menu select "Edit Fields > Set Field Calculation Order"

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

raelehman
Registered: Apr 8 2008
Posts: 4
Thank you, that worked! Calculation is working, and no more error sounds.
joachimwiese
Registered: Jan 20 2010
Posts: 1
I was having a problem with my calculated form fields not updating automatically, and this worked great. I've been having this problem for months. Thanks a lot thomp!