How do I count how many listboxes are of a certain value with Java script?

New Here ,
Jul 22, 2022 Jul 22, 2022

Copy link to clipboard

Copied

Hi I'm having trouble trying to count how many list boxes are of a specific value in Acrobat PDF.

Say we have two sets of list boxes, the first one have 5 values (say, blue, red, orange, yellow, purple), second set have 2 values (Dark, Light), now I need to count how many values are Dark blue, dark red or dark orange, how should I write the script?

TOPICS
JavaScript , PDF forms

Views

28

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Jul 22, 2022 Jul 22, 2022

Copy link to clipboard

Copied

LATEST

Use a loop over the fields and count the combinations of the field values.

Likes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines