# Call Multi Select Items from HubDb

**URL:** <https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416>\
**Category:** CMS Development\
**Tags:** design-manager\
**Created:** [November 26, 2024, 6:12pm UTC](https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416 "2024-11-26T18:12:27Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Woodsy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/woodsy/32/63860_2.png) [@Woodsy](https://community.hubspot.com/u/Woodsy)\
**Post date:** [November 26, 2024, 6:12pm UTC](https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416/1 "2024-11-26T18:12:27Z")

</div>

Hi  
I am trying to call Hubspot database items into a custom module using a HubDb row field. I can call text and images that are stored in the database but not multi select items.  
The field looks like this:

 ![Screenshot 2024-11-26 180522.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/6a1e2a33f674f02e24cb4fc740901de87d3f8a9a.png)

Titles can be called using:

`{{ item.resource.columns.name }}`

Description is:

`{{ item.resource.columns.description }}`

Image can be called using:

`{{ item.resource.columns.image.url}}`

If I use the following code it pulls back a lot of info around the multiselect rather than just the actual items.

`{{ item.resource.columns.type }}`

![Screenshot 2024-11-26 181000.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/f/fe07b6cd470d479248dc6be10fa18d3f12a73a02.png)

Here is the database column for reference:

 ![Screenshot 2024-11-26 180800.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/6/b/6b44d47f2b63da19f11fb4df6b15768b6d995620.png)

Thank you in advance for any assistance.

---

<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:** [November 27, 2024, 12:43am UTC](https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416/2 "2024-11-27T00:43:15Z")

</div>

Hi @Woodsy 👋 Thanks for your question. I’d like to ask some of our community champions if they have any HubDB wisdom they can share with us — hey @GiantFocal @Anton @jeremymandle, do you have any suggestions for @Woodsy?

Thank you very much for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![GiantFocal](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/giantfocal/32/41969_2.png) [@GiantFocal](https://community.hubspot.com/u/GiantFocal)\
**Post date:** [November 27, 2024, 3:00am UTC](https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416/3 "2024-11-27T03:00:22Z")

</div>

Hi @Woodsy,

Multi-select field return arrays; you can use a

**for loop**

to display the values.

You can replace your {{ item.resource.columns.type }} with the following:

```lia-code-sample
{% for type in item.resource.columns.type %}
{{ type.name }}
{% endfor %}

```

---

<div class="post-metadata">

**Author:** ![Woodsy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/woodsy/32/63860_2.png) [@Woodsy](https://community.hubspot.com/u/Woodsy)\
**Post date:** [November 27, 2024, 3:02pm UTC](https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416/4 "2024-11-27T15:02:17Z")

</div>

Thank you Ernesto @[GiantFocal](https://www.giantfocal.com/), that worked perfectly.

---

<div class="post-metadata">

**Author:** ![Woodsy](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/woodsy/32/63860_2.png) [@Woodsy](https://community.hubspot.com/u/Woodsy)\
**Post date:** [December 10, 2024, 10:13am UTC](https://community.hubspot.com/t/call-multi-select-items-from-hubdb/121416/5 "2024-12-10T10:13:04Z")

</div>

Hi @GiantFocal if there is more than 1 item in the multi select how would I adapt this code to show the first item in the multi select only? Thanks
