# Hubdb text filter

**URL:** <https://community.hubspot.com/t/hubdb-text-filter/88048>\
**Category:** CMS Development\
**Tags:** hubdb, local-development\
**Created:** [August 22, 2023, 3:03pm UTC](https://community.hubspot.com/t/hubdb-text-filter/88048 "2023-08-22T15:03:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ABlack5](https://avatars.discourse-cdn.com/v4/letter/a/ecd19e/32.png) [@ABlack5](https://community.hubspot.com/u/ABlack5)\
**Post date:** [August 22, 2023, 3:03pm UTC](https://community.hubspot.com/t/hubdb-text-filter/88048/1 "2023-08-22T15:03:01Z")

</div>

Hi, I am looking for some help with filtering. I have 1 filter working working but I would like to add another filter which will populate the dropdown from a text field in hubdb. Can anyone help? Here is my code for my working ‘select’ field filter. Thanks

\<select style=“border-radius: 5; border-width: 3px;” name=“test” form=“form\_id” onChange=“this.form.submit()”\>  
\<option value=“show-all”\>Show All\</option\>  
{% set types = hubdb\_table\_column(dynamic\_page\_hubdb\_table\_id, “test”).options %}  
{% for choice in types %}  
{% set type\_list = type\_list~choice.id|list%}  
{% if choice.id == request.query\_dict.test %}  
\<option selected=“selected” value=“{{ choice.id }}”\>{{ choice.name }}\</option\>  
{% else %}  
\<option value=“{{ choice.id }}”\>{{ choice.name }}\</option\>  
{% endif %}  
{% endfor %}  
\</select\>

---

<div class="post-metadata">

**Author:** ![Jaycee\_Lewis](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/jaycee_lewis/32/61352_2.png) [@Jaycee\_Lewis](https://community.hubspot.com/u/Jaycee_Lewis)\
**Post date:** [August 24, 2023, 10:01pm UTC](https://community.hubspot.com/t/hubdb-text-filter/88048/2 "2023-08-24T22:01:42Z")

</div>

Hey, @ABlack5 👋 Do you have an example of your code for the second option? Or what you’ve created so far? Occasionally, that can give the community additional context.

Thanks! — Jaycee
