Highlighted

Summing numbers from a text dropdown menu

New Here ,
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. 

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.

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

43

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

Summing numbers from a text dropdown menu

New Here ,
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. 

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.

TOPICS
Acrobat SDK and JavaScript, How to, PDF forms

Views

44

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
Aug 15, 2020 0
Engaged ,
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
Reply
Loading...
Aug 15, 2020 0
New Here ,
Aug 15, 2020

Copy link to clipboard

Copied

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
Reply
Loading...
Aug 15, 2020 0