Skip to main content
DawneeBearingIT
Participant
1월 8, 2025 8:32 오후 UTC
공지사항

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

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 답변

    try67
    Community Expert
    Community Expert
    1월 8, 2025 11:00 오후 UTC

    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
    1월 8, 2025 8:39 오후 UTC

    @DawneeBearingIT 

     

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

     

    Jane

     

    번역