I've created a fillable PDF form in Acrobat where each question has two letter choices which are listed these in a dropdown box (i.e. Question 1 can either be A or B, Question 2 can either be C or D). At the end of the document, I need 4 text boxes that count the number of A's, B's, C's and D's have been chosen in the dropdown boxes.
For example, the dropdown fields are gouped with "Section1" as the prefix and each individual dropdown is Q1 thru Q4.
Then the full field names (as entered in the Field Properties dialog) are: "Section1.Q1", "Section1.Q2", "Section1.Q3", "Section1.Q4",
This calculation script will count the number of selected A's. i.e., this code goes into the calculation script for the A text box
var nSum = 0;
event.value = nSum;
This code works regardless of the number of questions. The only thing that matters is that all the questions are grouped in "Section1"
Thank you for such a quick response, this works perfectly!