Support » Plugin: Contact Form 7 » [Plugin: Contact Form 7] Drop Down Menu change choices
6 years, 4 months 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.
This is a example of a page who has a bit like this.
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”:
option value “Calzone”
option value “Hawaii”
option value “Capricciosa”;
elseif selected = “Hamburger”:
option value “Big Mac”
option value “Whopper Pepper”;
elseif selected = “Sushi”:
option value “Big Sushi Plate”
option value “Rice with Salmon”;
option value ” “
So if menu1 hasn’t been selected then menu2 will be empty.
5 years, 11 months ago
I’m also interested in this. Been looking everywhere for something that does not require a huge amount of coding.