# Dropdown connection and filtre update

**URL:** <https://forum.bubble.io/t/dropdown-connection-and-filtre-update/271240>\
**Category:** Questions\
**Created:** [July 6, 2023, 11:15am UTC](https://forum.bubble.io/t/dropdown-connection-and-filtre-update/271240 "2023-07-06T11:15:24Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pt.joaquimcosta](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/pt.joaquimcosta/32/179748_2.png) [@pt.joaquimcosta](https://forum.bubble.io/u/pt.joaquimcosta)\
**Post date:** [July 6, 2023, 11:15am UTC](https://forum.bubble.io/t/dropdown-connection-and-filtre-update/271240/1 "2023-07-06T11:15:24Z")

</div>

I have a discussion forum, where I want the customer, when creating a question, to be able to enter the topic/category (dropdown) he wants, and then I want that on the homepage, when someone selects this topic in dropdow, it filters only the questions related to that topic.

---

<div class="post-metadata">

**Author:** ![mikeloc](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/mikeloc/32/93001_2.png) [@mikeloc](https://forum.bubble.io/u/mikeloc)\
**Post date:** [July 6, 2023, 11:40am UTC](https://forum.bubble.io/t/dropdown-connection-and-filtre-update/271240/2 "2023-07-06T11:40:36Z")

</div>

Hi there, @pt.joaquimcosta… here is one way to do what you described.

Create an option set for the categories and define the relevant options (categories) in the set.  
Add a `category` field to your `Question` data type, and select the categories option set as the type for the field.  
On the form where a question is created, add a dropdown that shows the options from the categories option set, and save the selected category to the `category` field when the question is created.  
Add a dropdown to the homepage that shows the options from the categories option set.  
Add a repeating group to the homepage to show the questions, and set up the repeating group’s data source like this.

 ![filter](https://us1.discourse-cdn.com/bubble/original/3X/7/8/780bb1ca4d7cc844368e50505afa044b34a872e6.png)

Hope this helps.

Best…  
Mike
