# HuBdb Specify Specific Select Label

**URL:** <https://community.hubspot.com/t/hubdb-specify-specific-select-label/134505>\
**Category:** CMS Development\
**Tags:** hubdb\
**Created:** [June 13, 2025, 8:11pm UTC](https://community.hubspot.com/t/hubdb-specify-specific-select-label/134505 "2025-06-13T20:11:25Z")\
**Posts on this page:** 2\
**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:** [June 13, 2025, 8:11pm UTC](https://community.hubspot.com/t/hubdb-specify-specific-select-label/134505/1 "2025-06-13T20:11:25Z")

</div>

Hi  
I am looking to be able to specify one of the select dropdown labels within the query. My code is:

```lia-code-sample
{% if dynamic_page_hubdb_row.business_outcomes.label %}
{% set row = hubdb_table_row(121356853, 191295276975) %}
{% endif %}

```

The business outcomes select dropdown has 4 items. I would like to be able to set up the code so that I can specify the label. For example:

```lia-code-sample
{% if dynamic_page_hubdb_row.business_outcomes.<label_name1> %}
{% set row = hubdb_table_row(121356853, 191295276975) %}
{% elif dynamic_page_hubdb_row.business_outcomes.<label_name2> %}
{% set row = hubdb_table_row(121356853, 191349738266) %}
{% elif dynamic_page_hubdb_row.business_outcomes.<label_name3> %}
{% set row = hubdb_table_row(121356853, 191349738222) %}
{% elif dynamic_page_hubdb_row.business_outcomes.<label_name4> %}
{% set row = hubdb_table_row(121356853, 1913497382149) %}
{% endif %}

```

Thanks

---

<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:** [June 15, 2025, 5:31am UTC](https://community.hubspot.com/t/hubdb-specify-specific-select-label/134505/2 "2025-06-15T05:31:37Z")

</div>

Hi Woodsy,

You’re on the right track, but HubL doesn’t let you use dynamic property names like  
‎`dynamic_page_hubdb_row.business_outcomes.\<label_name\>`.

Instead, you’ll want to check the label or value as a string.

Here’s how you can do it:

```lia-code-sample
{% if outcome_label == "Label 1" %}
 {% set row = hubdb_table_row(121356853, 191295276975) %}
{% elif outcome_label == "Label 2" %}
 {% set row = hubdb_table_row(121356853, 191349738266) %}
{% elif outcome_label == "Label 3" %}
 {% set row = hubdb_table_row(121356853, 191349738222) %}
{% elif outcome_label == "Label 4" %}
 {% set row = hubdb_table_row(121356853, 1913497382149) %}
{% endif %}

```

Just swap out “Label 1”, “Label 2”, etc. for your actual select option labels from HubDB.
