Count Number of fields IF field is filled-in vs blank
Hi! I am looking for code that I can put in the "Custom Calculation Script" section of the Text Field Properties in Acrobat Pro DC.
Part of the form I am creating has six fields:
String 1 - No.
String 2 - No.
String 3 - No.
Total Strings
String 4 - No.
String 5 - No.
String 6 - No.
Total Strings
I need to know how many fields get used, not the sum total of what's in the fields. For instance, if the user types:
String 1 - No. = 8
String 2 - No. = 10
String 3 - No.
String 4 - No. = 12
String 5 - No.
String 6 - No.
I need to know how many the first three strings are used (2) and how many from the second three strings are used (1).
String 1 - No. = 8
String 2 - No. = 10
String 3 - No.
Total Strings = 2
String 4 - No. = 12
String 5 - No.
String 6 - No.
Total Strings = 1
