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

Grand Total erratic

RP
Registered: Sep 11 2009
Posts: 8
Answered

I have a simple form in which a quantity field is multiplied by a set amount to reach a subtotal (using the Simplified Field Notation: Field Name * Cost). There are 25 subtotal fields which are then added together using the "Value is the sum of" option under Calculate in Acrobat. That works fine until the user goes back and alters one of the quantity fields. The subtotal changes correctly but the grand total field does not.

Is there a javascript I can use to correct this or am I doing something else wrong in Acrobat?

The only actual javascript I'm using is in 6 subtotal fields which require a number to be subtracted before the subtotal can be reached:

var a = getField("IceSkating").value;
event.value = (a * 20) -20;
if (event.value < 0) event.value = 0

My Product Information:
Acrobat Pro 8.1.6, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4308
You may have to edit the order of the fields for the calculation, "Edit => Form in Acrobat" then "Edit => Form Fields => Set Calculation Order". Note Acrobat 8 Professional's menu is dynamic so you need to set the form edit and then go back and pick up the item to edit.

George Kaiser

RP
Registered: Sep 11 2009
Posts: 8
That fixed it.

Thanks!