# HUBDB multiple selection option in dropdown in custom module

**URL:** <https://community.hubspot.com/t/hubdb-multiple-selection-option-in-dropdown-in-custom-module/19189>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [March 4, 2020, 6:40am UTC](https://community.hubspot.com/t/hubdb-multiple-selection-option-in-dropdown-in-custom-module/19189 "2020-03-04T06:40:35Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![piersg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/piersg/32/99782_2.png) [@piersg](https://community.hubspot.com/u/piersg)\
**Post date:** [March 9, 2020, 10:29am UTC](https://community.hubspot.com/t/hubdb-multiple-selection-option-in-dropdown-in-custom-module/19189/2 "2020-03-09T10:29:30Z")

</div>

If I understand your question correctly, you want to display all the options from a multi-selection column as a dropdown select, right?

In that case:

`<select name="type" form="form_id" onChange="this.form.submit()"><option value="show-all">Show All</option>{% set types = hubdb_table_column([TABLE ID], [COLUMN NAME]).options %}{% for choice in types %}{% set type_list = type_list~choice.id|list %}{% if choice.id == request.query_dict.[COLUMN NAME] %}<option selected="selected" value="{{ choice.id }}">{{ choice.name }}</option>{% else %}<option value="{{ choice.id }}">{{ choice.name }}</option>{% endif %}{% endfor %}</select>`

You can find more info here: [GitHub - HubSpot/cms-custom-objects-example · GitHub](https://designers.hubspot.com/docs/tutorials/how-to-build-a-real-estate-listing-with-hubdb)

You’d also need the logic to handle the query parameters (detailed in the above link) so that the page loads the correct information based on the selected filter.

---

_[View the full topic](https://community.hubspot.com/t/hubdb-multiple-selection-option-in-dropdown-in-custom-module/19189)._
