Copy link to clipboard
Copied
Hi, SUPER new to java script and doing custom calculations with Acrobat.
I've got a column of 30 fields that could contain client initials, I want to count the fields that contain text so that the number of current clients pops up in a field near the top of form. I know there's been similar questions and answers, but the problem is that when I try a script, this 'Go to Line' tab pops up and I have no clue about what to fill in or if its a separate problem not related to code.
I have been inputting the following script into the custom calculation box:
var total= " ";
for (var i=1; i<=30; i++) {
if (this.getField("Client"+i).valueAsString !=" ") total++;
}
event.value=total;
Any guidance would be helpful TY
Copy link to clipboard
Copied
The window is too small, so you're not seeing the OK button, which you need to click for the script to be entered: