# Get Hubd Multiselect to pull through

**URL:** <https://community.hubspot.com/t/get-hubd-multiselect-to-pull-through/65764>\
**Category:** CMS Development\
**Created:** [September 23, 2022, 2:01pm UTC](https://community.hubspot.com/t/get-hubd-multiselect-to-pull-through/65764 "2022-09-23T14:01:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![kpkreative](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kpkreative/32/29572_2.png) [@kpkreative](https://community.hubspot.com/u/kpkreative)\
**Post date:** [September 23, 2022, 2:01pm UTC](https://community.hubspot.com/t/get-hubd-multiselect-to-pull-through/65764/1 "2022-09-23T14:01:30Z")

</div>

I have built a Product Filter module that pulls data from our Hubd instance.

What I am having an issue with is one of the hubd columns is a multiselect column type. I have named this ‘Layer Type’ (layer\_type).

Within the module i have set up, I have linked this up with a multiselect choice field type.

I originally had this all set up as just a standard select field (one choice only), though the spec has changed to multiselect.

I updated the code to the below, though it is only displaying products if they have all selected values rather than one or another.

{% if “comfort” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Comfort Layer” %}  
{% endif %}  
{% if “filling” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Filling Material” %}  
{% endif %}  
{% if “insulator\_pad” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Insulator Pad” %}  
{% endif %}  
{% if “air\_filter\_mats” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Air Filter Mats” %}  
{% endif %}  
{% if “liquid\_filters” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Liquid Filters” %}  
{% endif %}  
{% if “core\_material” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Core Material” %}  
{% endif %}  
{% if “premium” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Premium” %}  
{% endif %}  
{% if “protective” is in item.filtering.filter\_by\_layer %}  
{% set queryparam = queryparam ~ “&layer\_type\_\_contains=Protective” %}  
{% endif %}  
Any help to make the work for multiselect would be much appreciated.  
Thanks in advance.

---

<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:** [September 26, 2022, 4:25pm UTC](https://community.hubspot.com/t/get-hubd-multiselect-to-pull-through/65764/2 "2022-09-26T16:25:53Z")

</div>

Hi, @kpkreative 👋 Thanks for reaching out! Hey @LMeert @rlopez have you tackled anything like what @kpkreative is describing? Thank you very much! — Jaycee
