<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Multi select filter in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Multi-select-filter/m-p/545877#M26612</link>
    <description>&lt;P&gt;Does anyone know how or if its possible to use the 'selectattr' filter for a multi select in HubDB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a normal select list I use something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set housename = house_db | selectattr ("housetype.name","equalto","Buckingham") %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I have changed the column type in HubDB to be a multi-select and updating the above filter to the below doesn't work. Does anyone know what I need to do?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set development = house_db | selectattr ("housetype.name","contains","Buckingham") %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 22 Dec 2021 09:55:14 GMT</pubDate>
    <dc:creator>ben-duchy</dc:creator>
    <dc:date>2021-12-22T09:55:14Z</dc:date>
    <item>
      <title>Multi select filter</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multi-select-filter/m-p/545877#M26612</link>
      <description>&lt;P&gt;Does anyone know how or if its possible to use the 'selectattr' filter for a multi select in HubDB?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a normal select list I use something like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set housename = house_db | selectattr ("housetype.name","equalto","Buckingham") %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However I have changed the column type in HubDB to be a multi-select and updating the above filter to the below doesn't work. Does anyone know what I need to do?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set development = house_db | selectattr ("housetype.name","contains","Buckingham") %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 09:55:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multi-select-filter/m-p/545877#M26612</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2021-12-22T09:55:14Z</dc:date>
    </item>
    <item>
      <title>Re: Multi select filter</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Multi-select-filter/m-p/545905#M26614</link>
      <description>&lt;P&gt;I've figured it out...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I started by calling in the whole table, then using a secondary loop combined with an if condition manged to filter out the relevant rows.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set house_type_db = hubdb_table_rows(1234567) %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% for row in house_type_db %}
  {% for item in row.development %}
    {% if item.name == "Chapelgarth" %}
      &amp;lt;!-- Show slick slider items --&amp;gt;
    {% endif %}
  {% endfor %}
{% endfor %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Dec 2021 11:42:14 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Multi-select-filter/m-p/545905#M26614</guid>
      <dc:creator>ben-duchy</dc:creator>
      <dc:date>2021-12-22T11:42:14Z</dc:date>
    </item>
  </channel>
</rss>

