# HubDB & custom search

**URL:** <https://community.hubspot.com/t/hubdb-custom-search/18263>\
**Category:** CMS Development\
**Tags:** design-manager, hubdb\
**Created:** [January 22, 2020, 12:05pm UTC](https://community.hubspot.com/t/hubdb-custom-search/18263 "2020-01-22T12:05:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![novaem](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/novaem/32/77060_2.png) [@novaem](https://community.hubspot.com/u/novaem)\
**Post date:** [January 22, 2020, 12:05pm UTC](https://community.hubspot.com/t/hubdb-custom-search/18263/1 "2020-01-22T12:05:33Z")

</div>

Hello.

I need to make a search bar with a filter by a HubDB column, which I’ve done with [this](https://designers.hubspot.com/docs/tutorials/how-to-build-a-real-estate-listing-with-hubdb) tutorial. I have a question if there is a way to place a search bar and a submit button to another page and show results as a dropdown list.

Or maybe I could modify the standart hubspot search so it can search by a hubdb field? Right now it has exactly the same functionality that I need except for the field it searches by.

---

<div class="post-metadata">

**Author:** ![sharonlicari](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sharonlicari/32/101479_2.png) [@sharonlicari](https://community.hubspot.com/u/sharonlicari)\
**Post date:** [February 3, 2020, 3:37pm UTC](https://community.hubspot.com/t/hubdb-custom-search/18263/2 "2020-02-03T15:37:59Z")

</div>

Hey @novaem

Thank you for your question, could you please share the URL you are working on? It would be beneficial to the Community will be able to assist you.

Hey @DanielSanchez @alyssamwilie @Kevin-C could you please advise or share some tips with @novaem?

Thank you

Sharon

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [February 5, 2020, 4:35am UTC](https://community.hubspot.com/t/hubdb-custom-search/18263/3 "2020-02-05T04:35:01Z")

</div>

You can use javascript to send the search query on to the url on submit and then use that query to fill out the results. Something like:

```auto
$('form').on('submit', function() {
 var query = $(this).find('input').val();

 window.location.href = "https://www.yoururl.com?query=" + query;
});

```

```auto
{% set filter = "columnName__icontains="~request.query_dict.query|urlencode %} 

{% for row in hubdb_table_rows(<tableId>, filter ) %}
{% endfor %}

```
