I created a form in acrobat with 6 text fields,
Text field names
11
12
13
14
15
16
Is there a way that I can count how many text fields have data "N/A" entered?
I created a form in acrobat with 6 text fields,
Text field names
11
12
13
14
15
16
Is there a way that I can count how many text fields have data "N/A" entered?
var emptyCount = 0; // count of empty fields
var NACount = 0; // count of field with a value of 'N/A"
for (i = 0; i < 6; i++) {
if (this.getField(11 + i).valueAsString.toUpperCase() == "")
emptyCount++; // increment empty count
if (this.getField(11 + i).valueAsString.toUpperCase() == "N/A")
NACount++; // increment N/A count
} // end for loop
app.alert("Number of empty fields: " + emptyCount + "\nNumber of fields with N/A: " + NACount, 3, 0);
George Kaiser