WordPress.org

Ready to get started?Download WordPress

Forums

Contact Form 7
Drop Down Menu change choices (3 posts)

  1. Nelson
    Member
    Posted 3 years ago #

    I would like to make a dropdown menu that has different choices depending on what have been selected in a previous dropdown menu.

    For example, if I have 2 dropdown menus and I call one of them Menu1 and the other Menu2

    Menu1 has 3 items: "Pizza", "Hamburger" and "Sushi"
    Menu2 has 8 items: "Calzone", "Hawaii", "Capricciosa" "Big Mac", "Whopper Pepper",
    "Big Sushi Plate", "Rice with salmon"

    If I select Pizza from Menu1 I will only get to choose between Calzone, Hawaii and Capricciosa from the Menu2 dropdown list.

    If I chose Hamburger from Menu1 I will only get to choose betwen Big Mac and Whopper Pepper at the second dropdown menu(menu2).

    So in other words. The values in menu2 changes depending on what have been selected at menu1.

  2. Nelson
    Member
    Posted 3 years ago #

    This is a example of a page who has a bit like this.

    Here
    If you change category to "car" for example some additional choices will appear.

    I don't need a new menu to show up I just want to change a existing menu.

    something like this(goes back to the first example in first post)

    if selected = "Pizza":
    select "menu2"
    option value "Calzone"
    option value "Hawaii"
    option value "Capricciosa";

    elseif selected = "Hamburger":
    select "menu2"
    option value "Big Mac"
    option value "Whopper Pepper";

    elseif selected = "Sushi":
    select "menu2"
    option value "Big Sushi Plate"
    option value "Rice with Salmon";

    else:
    select "menu2"
    option value " "

    So if menu1 hasn't been selected then menu2 will be empty.

  3. flexnds
    Member
    Posted 3 years ago #

    I'm also interested in this. Been looking everywhere for something that does not require a huge amount of coding.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic