Skip to main content
Participant
November 25, 2024
Question

add dropdown that has multiple full addresses to choose from

  • November 25, 2024
  • 2 replies
  • 527 views

Is there an easy way to add a full address in a dropdown list? I created a fax form and I have multiple addresses to choose from I'm trying to create a way to either select the department and it auto fills an address or a field where I can choose one of three addresses. How can I do this? I am using adobe pro and working off the online version. 

 

    This topic has been closed for replies.

    2 replies

    Nesa Nurani
    Community Expert
    Community Expert
    November 25, 2024

    This has been answered multiple times, try searching for dependent dropdown.

    Participant
    November 26, 2024

    Thank you Nesa for guiding me on where to look I wrote the java script it worked then it just stopped for the last case did I do anything wrong? 

    var f = this.getField("Street");

    switch (event.value){

    case "Yale University Dept of Pathology":
    f.setItems(["200 South Frontage Road EP 2631"]);break

    case "Yale Medicine Attn: Derm Path":
    f.setItems(["15 York Street LMP 5031"]);break

    case "Yale Medicine CARE Center":
    f.setItems(["2 Science Park"]);break

    default:
    f.setItems([""]);
    }

    John T Smith
    Community Expert
    Community Expert
    November 25, 2024

    >using adobe pro

     

    No such thing... Adobe is the company name... I will guess you mean Acrobat

     

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

    Participant
    November 25, 2024

    Sorry Yes John I meant to ask in Acrobat. Is there a way to create a full address drop down list or any way to add logic to get this?

    for example: 

    Department of Education

    123 Merry Lane

    Washington, CT 06824