# Filter dropdown results after selecting another dropdown

**URL:** <https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807>\
**Category:** Need help\
**Created:** [September 18, 2024, 12:16pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807 "2024-09-18T12:16:04Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://forum.bubble.io/u/rory)\
**Post date:** [September 18, 2024, 12:16pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/1 "2024-09-18T12:16:04Z")

</div>

Hi,

I’m trying to filter a second drop down based on which option the user selects in the first one.

I know this has been discussed in numerous other threads but I can’t seem to get my head around previous solutions and some are a couple of years old so I want to make sure I understand the most up to date methods.

For context:-

 ![Screenshot 2024-09-18 at 11.19.01](https://us1.discourse-cdn.com/bubble/original/3X/1/3/13881b8fb6303a2cb5919565f01eccddfa8cfff7.png)  
 ![Screenshot 2024-09-18 at 11.19.09](https://us1.discourse-cdn.com/bubble/original/3X/f/0/f0799f72f260aec542891b47e68fb6d05af958c4.png)

I’ve created an option set with all of my vehicle makes and within each make have ‘modified’ the attributes to include the various models of each vehicle attributed to the specific make.

I’ve managed to display the vehicle makes in the first drop down however, i’m struggling to modify the second drop down to show and filter the models based on the users ‘make selection’ in the first drop down.

 ![Screenshot 2024-09-18 at 11.18.31](https://us1.discourse-cdn.com/bubble/original/3X/1/f/1f7410d1446c242bf573e9695f8fe912813f1fa5.jpeg)

any support would be great.

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [September 18, 2024, 12:23pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/2 "2024-09-18T12:23:35Z")

</div>

If your Makes option set has a list of Models for each make (which I _think_ is what you’re saying?), you just need to display the selected Make’s Models.

If your Makes option set _doesn’t_ have a list of models, but rather your Models Option Set has an Attribute of Make, then you just need to display All Models: filtered, where the Make is the selected Make.

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://forum.bubble.io/u/rory)\
**Post date:** [September 18, 2024, 12:28pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/3 "2024-09-18T12:28:22Z")

</div>

Hi Adam,

thanks for the advice, apologies i’m new to bubble and nocode in general.

This is how i’ve set it up, i’ve added an attribute for ‘Vehicle models’ with a type of text (list) and then manually gone into each make in the option set and modified the attribute to include a list of models.

Is that correct? if so how would I display this in the drop down feature?

 ![Screenshot 2024-09-18 at 13.26.23](https://us1.discourse-cdn.com/bubble/original/3X/7/3/730bf33bde44b57482acf8616bd94699330b0e40.png)  
 ![Screenshot 2024-09-18 at 13.26.28](https://us1.discourse-cdn.com/bubble/original/3X/a/4/a457b8820f9ffdb39f1f4a9662855f5ea4e61835.png)

thanks for the help

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [September 18, 2024, 12:41pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/4 "2024-09-18T12:41:17Z")

</div>

Personally I’d have used 2 separate Option Sets for this (one for Makes, and one for Models), and avoided using a list of Texts (use a list of Options instead).

But in any case, your current setup is fine, so the way to do this is exactly what I said in my last reply.

i.e.

For your makes dropdown you need to show a list of All Vehicles.

And for your Models dropdown you need to use the Selected Vehicle’s Vehicle Models.

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://forum.bubble.io/u/rory)\
**Post date:** [September 18, 2024, 12:58pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/5 "2024-09-18T12:58:53Z")

</div>

Would it be easier with 2 option sets?

I’m stuck trying to understand the filter command.

 ![Screenshot 2024-09-18 at 13.56.10](https://us1.discourse-cdn.com/bubble/original/3X/2/4/24194cff7aab1e9a5c65c57a8e20ccd0bc73cff7.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [September 18, 2024, 1:05pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/6 "2024-09-18T13:05:18Z")

</div>

> [@rory](#):
>
> Would it be easier with 2 option sets?

Not particularly…

> [@rory](#):
>
> I’m stuck trying to understand the filter command.

I’m not sure why you’re using a filter here (I never mentioned using a filter).

The Choices source should just be the selected Vehicle’s Vehicle Models.

i.e.

`VehicleDropdown's Value's Vehicle Models` (or something like that, depending on your element names etc.)

And, obviously, as your Vehicle Models attribute is a list of Texts, the ‘Type of Choices’ needs to be ‘Text’.

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://forum.bubble.io/u/rory)\
**Post date:** [September 18, 2024, 1:26pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/7 "2024-09-18T13:26:54Z")

</div>

So i’ve set up the first drop down as ‘Type of Choices’ = Vehicle (my option set) however, the second drop down doesn’t allow me to select it as ‘Type of Choices’ Text as you’ve said as it’s not compatible

![Screenshot 2024-09-18 at 14.25.18](https://us1.discourse-cdn.com/bubble/original/3X/9/d/9dac1c7dd323e9a1002aa64cfb8deb0bdd3c8194.png)

---

<div class="post-metadata">

**Author:** ![adamhholmes](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/adamhholmes/32/100510_2.png) [@adamhholmes](https://forum.bubble.io/u/adamhholmes)\
**Post date:** [September 18, 2024, 1:31pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/8 "2024-09-18T13:31:12Z")

</div>

Is the vehicle Model attribute _definitely_ a list of texts?

And the dropdown type of choices is _definitely_ set to ‘text’?

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://forum.bubble.io/u/rory)\
**Post date:** [September 18, 2024, 1:34pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/9 "2024-09-18T13:34:57Z")

</div>

Yeah, definitely both selected correctly…

![Screenshot 2024-09-18 at 14.33.15](https://us1.discourse-cdn.com/bubble/original/3X/8/7/872a29df97438143caf843d98946df92826f29ac.png)  
 ![Screenshot 2024-09-18 at 14.34.28](https://us1.discourse-cdn.com/bubble/original/3X/e/1/e1c381b13c97516da23c63099ca89032518a3a8d.png)

---

<div class="post-metadata">

**Author:** ![rory](https://avatars.discourse-cdn.com/v4/letter/r/a183cd/32.png) [@rory](https://forum.bubble.io/u/rory)\
**Post date:** [September 18, 2024, 1:36pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/10 "2024-09-18T13:36:48Z")

</div>

I’ve fixed it mate, I deleted the input form and re-added it.

seems to have bugged due to how many times i’ve changed it most likely.

thanks for the help

---

<div class="post-metadata">

**Author:** ![Hustling-Labs](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/hustling-labs/32/140577_2.png) [@Hustling-Labs](https://forum.bubble.io/u/Hustling-Labs)\
**Post date:** [September 21, 2024, 2:36pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/11 "2024-09-21T14:36:55Z")

</div>

I actually recorded a video a while ago that explains how to do this. You can see it here:

Using Option Sets in [Bubble.io](http://Bubble.io) to create linked dropdown  
[https://youtu.be/tucIrNfrjHk](https://youtu.be/tucIrNfrjHk)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [November 27, 2024, 12:16pm UTC](https://forum.bubble.io/t/filter-dropdown-results-after-selecting-another-dropdown/339807/12 "2024-11-27T12:16:36Z")

</div>

Closed on November 27, 2024, 12:16pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
