Welcome Dialog

Welcome to the Community!

We have a brand new look! Take a tour with us and explore the latest updates on Adobe Support Community.


Have the values in one combo box be filtered based on what went into another combo box

New Here ,
Aug 06, 2021 Aug 06, 2021

Copy link to clipboard

Copied

Here's what I'm facing:

 

In this scenario we may have 20 Organizations with 30 Department Addresses. If I put the Org's in one combo box there of course would be 20 selections. If I placed all the Department Addresses in the next combo box there would be 600 selections and nothing assuring that the Department Address chosen was in the correct Org.

 

 

If Org 1 is chosen then the next combo box selection will be only those addresses under Org 1. If Org 2 is selected the next combo box selection will be only those Department Addresses under Org 2

 

Organization                                      Department Address

Org 1                                                     100 Washington Street

                                                                30 Congress Street

                                                                50 State Street

 

 

Org 2                                                     200 Franklin Street

                                                                450 Gloucester Street

                                                                700 Newbury Street
Thank you,

Robert

Views

29

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 ,
Aug 06, 2021 Aug 06, 2021

Copy link to clipboard

Copied

Please let us know which program you are having problems with. Someone will be along to move this post to the appropriate product forum, where you are more likely to get an answer to your question.

The Using the Community forum is for help in using the Adobe Support Community forums, not for help with specific programs. Product questions should be posted in the associated product community.

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 06, 2021 Aug 06, 2021

Copy link to clipboard

Copied

Acrobat Pro

 

Moving from Using the Community (which is about the forums) to the correct forum... Mod
To ask in the forum for your program please start at https://community.adobe.com/

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 ,
Aug 06, 2021 Aug 06, 2021

Copy link to clipboard

Copied

LATEST

Lets say your dropdown fields names are "Organization" and "Department Address", as Validation script of  "Organization" field use this:

if(event.value == "Org1"){
this.getField("Department Address").clearItems();
this.getField("Department Address").setItems([["100 Washington Street"], ["30 Congress Street"], ["50 State Street"]]);}
else if(event.value == "Org2"){
this.getField("Department Address").clearItems();
this.getField("Department Address").setItems([["200 Franklin Street"], ["450 Gloucester Street"], ["700 Newbury Street"]]);}
else this.getField("Department Address").clearItems();

I belive you will have no trouble adding additional "Org" to the script.

You can also check "Commit selected value immediately" in "Organization" field under properties->options tab.

 

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