I have a row of dollar amounts
$$$$ $$$$$ $$$$ $$$$ $$$$ $$$$$ $$$$$ date $$$$$total of all previous monies
Anyone know how to write the java script for this????
You can use the any of the calculations options:
"Field is the ____ of the following fields" and select the fields.
"Simplified field notation" and just list the field names and use the addition operator between the field names.
All of the above assumes you are using Acrobat Form Tools and a numeric format.
Do I still have to select the field names for each row from the VERY LONG list every time I set the calulation??? I ahve over 60 individuals boxes I need to set for totals to 60 indidual lines.
Yes. but it can be made easier if you use a hierarchical naming convention placing one field at row one and and naming it "Row". Now highlight the field and select "Place multiple fields" and create enough fields for the number of rows. Select the row 1 field and repeat the place multiple fields across the row. You now only have to select the field name "Row.0" for the first row.
event.value = Number(this.getField("Field1").value) + Number(this.getField("Field2").value) + Number( this.getField("Field3").value) + Number(this.getField("Fieldn").value);