Skip to main content
Participant
January 25, 2023
Question

Dropdown 1 list creating automated choices for Dropdown 2 to select from ?

  • January 25, 2023
  • 4 replies
  • 1422 views

Hi there 

Ive been looking on the the forum but haven't quite found the right answer therefore this may not be possible. I would like to create a drop down in which the selected value "sector" then will generate a list of options for the person to select one of the "segment"  choices.

To put into context: 

 

Drop down 1 - Title : sector 

Professional services 

Farms and Estates

Leisure and Hospitality 

 

Drop down 2 - Title : Segment 

Professional Services segments include:

  • Bankers 
  • Private Equity
  • Lawyers 
  • Solicitors 
  • Financial Services 
  • Valuers 
  • Property advisors  

Farms and estates segments include: 

  • Arable 
  • Livestock 
  • Forestry 
  • Dairy 
  • Fisheries 

Leisure and Hospitality segements include: 

  • Food and Beverage 
  • Entertainment and recreation 
  • Accommodation 
  • Combination 
  • Travel/Tourism 

 

Any help would be mostly appreciated.

 

Thanks 

 

    This topic has been closed for replies.

    4 replies

    Nesa Nurani
    Community Expert
    Community Expert
    February 1, 2023

    As 'Validation' script of "sector" field, use this:

    var f = this.getField("segment");
    switch(event.value){
    case "Professional services":
    f.setItems(["Bankers","Private EquityLawyers","Solicitors","Financial Services","Valuers","Property advisors"]);
    break;
    
    case "Farms and Estates":
    f.setItems(["Arable","Livestock","Forestry","Dairy","Fisheries",]);
    break;
    
    case "Leisure and Hospitality":
    f.setItems(["Food and Beverage","Entertainment and recreation","Accommodation","Combination","Travel/Tourism"]);
    break
    
    default:
    f.clearItems();}
    Participant
    February 1, 2023

    Screen shot 1 

    Screen shot 2 

    Screenshot 3 

    Hi Nessa, I have attempted to add the script you have given with no joy unfortunately. I have added screen shots to show you how I have applied in case I am doing something wrong.

    Thanks 

    kglad
    Community Expert
    Community Expert
    February 1, 2023

    in the future, to find the best place to post your message, use the list here, https://community.adobe.com/

     

    p.s. i don't think the adobe website, and forums in particular, are easy to navigate, so don't spend a lot of time searching that forum list. do your best and we'll move the post if it helps you get responses.

     

    <moved from using the community>

    Nancy OShea
    Community Expert
    Community Expert
    January 26, 2023

    That's called an intelligent forum.  Answers given to one question, lead to other questions and so on.  Depending on how sophisticated this will be, you might need to program a dedicated app to handle all the variables.  A good example off the top of my head would be TurboTax (tax preparation software).

     

    Nancy O'Shea— Product User & Community Expert
    Participant
    February 1, 2023

    Thanks Nancy - I will have alook into this 

    kglad
    Community Expert
    Community Expert
    January 25, 2023

    is this an acrobat question?

    Participant
    February 1, 2023

    Hi yes it is .. I dont think this is possible but thought I woul ask the question