• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

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

112

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
Community Expert ,
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.

Votes

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