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

Summing numbers from a text dropdown menu

New Here ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

Hi

Screenshot 2020-08-15 at 13.49.20.png

I have a pdf that contains dropdown menu for type of ID document. In my example, the dropdown option is 'passport'. I want to then create a script that will add my total number of 'crew' if the fields contain the 'passport' dropdown. Ie if I select 'passport' on a row, then automatically the total crew is 1. On next row, if i add 'passport' again, totla crew is now 2. If Passport is not selected on a row then it doesnt add that as a person. The drop down has to be selected to 'Passport' for it to register a person and then add it from each row if selected. 

TOPICS
Acrobat SDK and JavaScript

Views

166

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

correct answers 1 Correct answer

Community Expert , Aug 15, 2020 Aug 15, 2020

If you just calculate passport as value it's easy:

give passport export value of 1 and give other choices export value of 0 or no value at all.

In the field where you want result to show go to calculate tab and choose"value is the" and pick your dropdown fields.

Likes

Translate

Translate
Community Expert ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

If you just calculate passport as value it's easy:

give passport export value of 1 and give other choices export value of 0 or no value at all.

In the field where you want result to show go to calculate tab and choose"value is the" and pick your dropdown fields.

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
New Here ,
Aug 15, 2020 Aug 15, 2020

Copy link to clipboard

Copied

LATEST

awesome, works! thank you so much

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