# Hubdb Row Field for multiple tables

**URL:** <https://community.hubspot.com/t/hubdb-row-field-for-multiple-tables/101222>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [February 27, 2024, 4:54pm UTC](https://community.hubspot.com/t/hubdb-row-field-for-multiple-tables/101222 "2024-02-27T16:54:53Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [February 27, 2024, 4:54pm UTC](https://community.hubspot.com/t/hubdb-row-field-for-multiple-tables/101222/1 "2024-02-27T16:54:53Z")

</div>

Hi

I’m currently successfully using the hubdb row field to return user selected rows (not all rows) from a single table:

```lia-code-sample
 {% for item in module.hubdbrow_field %}	

 	{{ item.columns.title }}<br>
 	{{ item.columns.location }}<br>

 	etc etc

 {% endfor %}

```

Is there a way to use this field to allow the user to select other tables as well? I note that the table is defined in the field “content options”, but I want the user to be able to switch between different tables - ie select rows from multiple tables.

Thanks for any help!

---

<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:** [February 27, 2024, 10:38pm UTC](https://community.hubspot.com/t/hubdb-row-field-for-multiple-tables/101222/2 "2024-02-27T22:38:16Z")

</div>

Hey, @DM2 👋 Thank you very much for your post! It’s an interesting question, for sure. I am not a HubDB wizard, but I know a few 😉 Let’s invite them to the conversation — @Stephanie-OG @Anton @Josh, have you tackled anything similar in your recent project work?

Thank you for taking a look! — Jaycee

---

<div class="post-metadata">

**Author:** ![erindigsmusic](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/erindigsmusic/32/1195_2.png) [@erindigsmusic](https://community.hubspot.com/u/erindigsmusic)\
**Post date:** [March 5, 2024, 6:44pm UTC](https://community.hubspot.com/t/hubdb-row-field-for-multiple-tables/101222/3 "2024-03-05T18:44:12Z")

</div>

In order to use the HubDB row module selector field, you have to set the table in Design Manager. However, this can still be done in a slightly different way.

**Here’s how I would approach this:**

- module field to select the HubDB table
- individual module fields to select HubDB rows - you’ll need one for each selectable table
  - set each of these to be dependent on the selection of the parent HubDB table in the first

**Here’s what that would look like:**

 ![Screenshot 2024-03-05 at 11.40.50 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/b/e/bec0eb7ae09373cdfa995d07971c737c220abe23.png)

_Table & rows module fields setup_

 ![Screenshot 2024-03-05 at 11.41.00 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/b/db941e5fea16180ba9eee982332507a0cf379835.png)

_Row field for each selectable table set to that table_

 ![Screenshot 2024-03-05 at 11.41.07 AM.png](https://d2qpr2jzcazej7.cloudfront.net/original/3X/d/e/deb20708442e1cd6092b213ceb853fa616b6f0b2.png)

_Row fields are dependent on the selection of their parent table_

---

<div class="post-metadata">

**Author:** ![DM2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/dm2/32/39641_2.png) [@DM2](https://community.hubspot.com/u/DM2)\
**Post date:** [March 6, 2024, 8:43am UTC](https://community.hubspot.com/t/hubdb-row-field-for-multiple-tables/101222/4 "2024-03-06T08:43:27Z")

</div>

Thanks @erindigsmusic that’s a neat workaround!
