Skip to main content
DawneeBearingIT
Participant
January 8, 2025
Question

Need help with a script that allows a dropdown list in Acrobat to show a secondary dropdown list

  • January 8, 2025
  • 2 replies
  • 150 views

I have created a form that contains dropdown lists. I need several of the dropdown lists to offer a secondary dropdown list based on the original chopice.

 

Basically, when a user chooses a department (all the departments will be listed), the secondary dropdown list allows the user to choose a job title (all of the job titles in that department)

 

Example:

Information Technology

     IT Manager

     IT Specialist

     IT Tech

Human Resources

     HR Manager

     HR Assistant

 

I would very much appreciate any suggestions!

Thank you,

Dawn

 

 

 

 

 

 

 

    2 replies

    try67
    Community Expert
    Community Expert
    January 8, 2025

    You need to use a Validation script on the first field, something like this:

     

    if (event.value=="Information Technology") this.getField("JobTitles").setItems(["", "IT Manager", "IT Specialist", "IT Tech"]);

    else if (event.value=="Human Resources") this.getField("JobTitles").setItems(["", "HR Manager", "HR Assistant"]);

    "]);

     

    etc.

    jane-e
    Community Expert
    Community Expert
    January 8, 2025

    @DawneeBearingIT 

     

    I've moved your post from Using the Community to the Acrobat forum.

     

    Jane