Hello,
I’m trying to find help for an conditional dropdown Menu. I want to build my own marketplace for aircrafts.
For this I want to implement several dropdown menus, like aircraft manufacuterer and aircraft models. For this I have created different Option sets.
One option set is with all manufacturers on the market.
Then I have created different aircraft-model Option sets, based on the manufacurer.
For example, if Manufacturer A is chosen, how can I connect Dropdown Menu B to show only the Aircrafts in my Model-A List and if Manufacturer B would be chosen, how can I then only show Model-B List in the same dropdown.
I tried to find a good tutorial about it, but it doesn’t show me the if-then options.
Could anyone help my with this?
Welcome to the forum!
You need to establish a relationship in the database. For example:
Manufacturer
- name (text)
- logo (image)
Model
- name (text)
- logo (image)
- Manufacturer (Manufacturer)
This means every model is associated with a manufacturer.
And we have 2 dropdowns on the page:
- Manufacturers
- Models
In the models dropdown, you need to set this query:
Do a search for Model -> Manufacturer = Dropdown Manufacturer's value
Whenever you change the selection in the manufacturers dropdown, it will update the query in the models dropdown.
If anything is unclear, feel free to ask again!
Hi, thanks for your help.
Unfortunatly, I’m still struggeling about it.
-
Do I need to set my database in the “Option” or the “Data Type” section?
right now, I have set it into the option section -
When I do the “Search for…” function, I can’t select the Value in the first Dropdown Menu.
I have attached two screenshots. The first is my setup for the Page Itself. In this example, it is the relationship, between aircraft type (e.g. Engine Powered Plane and Glider) and availiable sub-categories. The sub-categories I have attached in the second picture. The upper half is the sub-categorie for engine powered aircraft and the lower half is for the glider. I have also set the attribute glider or engine powered aircraft to each sub-categorie.
Was this correct, or is it the complete wrong way?
Best regards, Niklas
and already appreciate your help