# How to create a filter for Real Estate website?

**URL:** <https://forum.wixstudio.com/t/how-to-create-a-filter-for-real-estate-website/26960>\
**Category:** Ask the community\
**Tags:** question, code\
**Created:** [January 16, 2018, 5:22am UTC](https://forum.wixstudio.com/t/how-to-create-a-filter-for-real-estate-website/26960 "2018-01-16T05:22:13Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![yuanxintee0519](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yuanxintee0519/32/1589_2.png) [@yuanxintee0519](https://forum.wixstudio.com/u/yuanxintee0519)\
**Post date:** [January 16, 2018, 5:22am UTC](https://forum.wixstudio.com/t/how-to-create-a-filter-for-real-estate-website/26960/1 "2018-01-16T05:22:13Z")

</div>

How to create a search filter for Real Estate website?

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [January 16, 2018, 8:39am UTC](https://forum.wixstudio.com/t/how-to-create-a-filter-for-real-estate-website/26960/2 "2018-01-16T08:39:36Z")

</div>

Hi,

Welcome to WixCode. Glad to have you aboard.

You can get started with database filtering by looking at these docs:

- [How to Create a Filter by Dataset](https://support.wix.com/en/article/how-to-create-a-filter-by-dataset)

- [wix-data API](https://www.wix.com/code/reference/wix-data.html)  
After you’ve had a chance to play with the WixCode database system, visit us again here in the forums with your questions.

Have fun,

Yisrael

---

<div class="post-metadata">

**Author:** ![yuanxintee0519](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yuanxintee0519/32/1589_2.png) [@yuanxintee0519](https://forum.wixstudio.com/u/yuanxintee0519)\
**Post date:** [January 16, 2018, 9:13am UTC](https://forum.wixstudio.com/t/how-to-create-a-filter-for-real-estate-website/26960/3 "2018-01-16T09:13:33Z")

</div>

![](https://us1.discourse-cdn.com/wix/original/3X/6/d/6dd762dbe4fb5bedee1d1dbd213a4a837897c6aa.png)  
Actually i want made a multiple dropdown filter.But i only run one only. Is there any way to run the second dropdown?

---

<div class="post-metadata">

**Author:** ![yisrael-wix](https://sea1.discourse-cdn.com/wix/user_avatar/forum.wixstudio.com/yisrael-wix/32/1107_2.png) [@yisrael-wix](https://forum.wixstudio.com/u/yisrael-wix)\
**Post date:** [January 16, 2018, 10:16am UTC](https://forum.wixstudio.com/t/how-to-create-a-filter-for-real-estate-website/26960/4 "2018-01-16T10:16:44Z")

</div>

Take a look at the post [Let users filter data in a table](https://www.wix.com/code/home/forum/advanced-tips-tricks/let-users-filter-data-in-a-table) for a discussion regarding more complex filters.

You can use multiple dropdowns in a filter like this:

```javascript
export function filterButton_onClick() {
	$w("#dataset1").setFilter(wixData.filter() 
                .contains("type", $w("#selection1").value) 
                .contains("title", $w("#selection2").value)
        );    
   })

```

In the above example, #selection1 and #selection2 are the two dropdown menus. Together they will filter the query.

Look at the wix-data.filter API for more information.

Good luck,

Yisrael
