Highlighted

Javascript-Drop-down list

Explorer ,
Sep 17, 2020

Copy link to clipboard

Copied

I never used Javascript before.

I want to create two drop-down lists. The second list choices are depending on the choice made in the first list. Was would be the script for this use ?

List 1 : Item1, Item2 and Item3

List 2 : If item 1 or 2 is selected, choices must be ChoiceA and ChoiceB

If item 3 is selected, choices muts be ChoiceC and Choice D

Can someone help me with a script please ?

 

Exactly what I want. I'll figure how to do it.

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

89

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

Javascript-Drop-down list

Explorer ,
Sep 17, 2020

Copy link to clipboard

Copied

I never used Javascript before.

I want to create two drop-down lists. The second list choices are depending on the choice made in the first list. Was would be the script for this use ?

List 1 : Item1, Item2 and Item3

List 2 : If item 1 or 2 is selected, choices must be ChoiceA and ChoiceB

If item 3 is selected, choices muts be ChoiceC and Choice D

Can someone help me with a script please ?

 

Exactly what I want. I'll figure how to do it.

TOPICS
Acrobat SDK and JavaScript, Create PDFs, PDF forms

Views

90

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
Sep 17, 2020 0
Most Valuable Participant ,
Sep 17, 2020

Copy link to clipboard

Copied

Try searching the forum for "dependent dropdowns". This issue was discussed many times in the past, including code examples.

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...
Sep 17, 2020 0
Adobe Community Professional ,
Sep 17, 2020

Copy link to clipboard

Copied

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...
Sep 17, 2020 0
Contributor ,
Sep 17, 2020

Copy link to clipboard

Copied

You have your code sample we can help you with or you want to hire someone to do it for you?

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...
Sep 17, 2020 0
Explorer ,
Sep 17, 2020

Copy link to clipboard

Copied

I'd like to learn it so i can do it by myself.

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...
Sep 17, 2020 0
Adobe Community Professional ,
Sep 17, 2020

Copy link to clipboard

Copied

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...
Sep 17, 2020 0
Explorer ,
Sep 17, 2020

Copy link to clipboard

Copied

Exactly what I want. I'll figure how to do it.

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...
Sep 17, 2020 0
BarlaeDC LATEST
Adobe Community Professional ,
Sep 17, 2020

Copy link to clipboard

Copied

Hi,

 

You should be able to use this - https://community.adobe.com/t5/acrobat/calculate-a-form-field/m-p/11435264?page=1#M276798

 

Regards

 

Malcolm

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...
Sep 17, 2020 0