what is wrong with my calculate script?
I have a form within a document and can't figure out what is wrong.
The debugger error:
TypeError: getField(...) is null
10:Field:Calculate
TypeError: getField(...) is null
37:AcroForm:G.44:Calculate
TypeError: getField(...) is null
The (calculate) code in column 10 is:
(function () {
// Get the field values, as numbers
var A0 = +getField("A.0").value;
var B0 = +getField("B.0").value;
var C0 = +getField("C.0").value;
var D0 = +getField("D.0").value;
var E0 = +getField("E.0").value;
var F0 = +getField("F.0").value;
var G0 = +getField("G.0").value;
var H0 = +getField("H.0").value;
// Set this field’s value to the sum
event.value = A0 + B0 + C0 + D0 + E0 + F0 + G0 + H0 ;
})()
There are 10 columns that add horizontally. (Column 9 is actually empty and not used, if that makes a difference)
And 44 rows that add vertically.
The error message multiples as I progress in the form/matrix, but regularly references the same "10" and "37", but the "G.44" is sometimes "M.44".
I keep staring and can't find the error. ![]()
