Calculating the number of times an item is selected from dropdown lists in a PDF form
I am creating a PDF form that has 25 drop-down lists consisting of the following identical options, including:
- ‘Blank’ (just a single space so the field looks blank)
- L - Lead
- GRR - Galvanized Requiring Replacement
- NL - Non-Lead
- UNK - Unknown
On another part of the form, I have the same items listed with a text field beside it in a recap section at the end of the form:
Lead ______ GRR ________ NL ________ UNK ________
My goal is that each time a selection is made from one of the lists, the total number of times that selection is made (from all the lists combined) will be displayed in the corresponding recap section.
For example:
If ‘GRR’ is selected total of 8 different times in 8 of the 25 dropdown lists, it will read "8" in the recap section next to the GRR heading.
I am brand new to this – no JavaScript experience at all – so please spell it out for me, and if it would be possible for me to copy and paste the script, that would be AWESOME!
