<?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 Re: HubDB filtering by custom module in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203032#M7771</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- cool, let's try 1 more thing, then I'm out of ideas &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;{% set myFilter = '' %}
{% if  module.branche == '1' %}
    {% set myFilter = "industry=1" %}
{% if  module.branche == '2' %}
    {% set myFilter = "industry=2" %}
{% endif %}

{% set table = hubdb_table_rows(XXXXXX, myFilter) %}&lt;/PRE&gt;</description>
    <pubDate>Wed, 22 Aug 2018 13:10:48 GMT</pubDate>
    <dc:creator>tjoyce</dc:creator>
    <dc:date>2018-08-22T13:10:48Z</dc:date>
    <item>
      <title>HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202798#M7698</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'm currently building a custom module for a customer and&amp;nbsp; got stuck on the "filter-feature".&lt;/P&gt;&lt;P&gt;The customer wants to have the functionality that he inserts one module an then selects an option for "filter the rows by column option".&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I've got a HubDB Column with "industry" which is an option col.&amp;nbsp;&lt;BR /&gt;In the custom module I've insert an "selection" function and wanted to do something like&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;{% if widget.branche =='1'%}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Option1’) %}
{% elif widget.branche =='2'%}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Option2’) %}
{% endif %}&lt;/PRE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;Option1 and Option2 are some placeholders for the options in the industry column.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;What am I doing wrong and could someone provide me help, please?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 07:02:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202798#M7698</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-21T07:02:04Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202824#M7709</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- if this is a custom module in the design manager that you're editing. I think you're looking for "&lt;STRONG&gt;module.branche&lt;/STRONG&gt;" not "&lt;STRIKE&gt;widget.branche&lt;/STRIKE&gt;". Test your output with&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{{module.branche|pprint}}&lt;/PRE&gt;&lt;P&gt;this will help you debug in the future&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;If this answer helped, please, mark as solved &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;HR /&gt;&lt;P&gt;tim@belch.io | &lt;A href="https://forms.belch.io" target="_blank"&gt;forms.belch.io&lt;/A&gt; | Design your own Beautiful HubSpot Forms; No coding necessary.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Drop by and say Hi to me &lt;A href="http://slack.belch.io/" target="_blank"&gt;on slack&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 11:51:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202824#M7709</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-21T11:51:48Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202843#M7715</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;- thanks for the answer. I think my "problem" was a little bit misleading.&lt;BR /&gt;&lt;BR /&gt;I'm building a costume model for filtering and simultaneously displaying the HubDB content.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the whole moldule-code so far( without CSS)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if  widget.job_anzahl =='5'%}
{% set table = hubdb_table_rows(XXXXXX, 'limit=5') %}
{% elif  widget.job_anzahl =='10'%}
{% set table = hubdb_table_rows(XXXXXX, 'limit=10') %}
{% elif  widget.job_anzahl =='15'%}
{% set table = hubdb_table_rows(XXXXXX, 'limit=15') %}
{% elif  widget.job_anzahl =='20'%}
{% set table = hubdb_table_rows(XXXXXX, 'limit=20') %}
{% elif  widget.job_anzahl =='25'%}
{% set table = hubdb_table_rows(XXXXXX, 'limit=25') %}
{% elif  widget.job_anzahl =='30'%}
{% set table = hubdb_table_rows(XXXXXX, 'limit=30') %}
{% endif %}
{% if  widget.branche =='1'%}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Anlagenbau’) %}
{% elif  widget.branche =='2'%}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Automotive’) %}
{% endif %}

&amp;lt;div class="row"&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="span12 job-rss-wrapper"&amp;gt;
{% if widget.introtext_anzeigen %}
&amp;lt;div class="row"&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="span12 intro-text-wrapper"&amp;gt;
            {% if widget.introtext_headline %}
                &amp;lt;{{ widget.introtext_headline_size }}&amp;gt;{{ widget.introtext_headline_content }}&amp;lt;/{{ widget.introtext_headline_size }}&amp;gt;
            {% endif %}
            &amp;lt;p class="intro-text"&amp;gt;{{ widget.introtext }}&amp;lt;/p&amp;gt;
        &amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
&amp;lt;/div&amp;gt;
{% endif %}
{% if table == []%}
&amp;lt;p class='align-center'&amp;gt;Sorry, no listings found for that Search. Try changing your fiter and search again.&amp;lt;/p&amp;gt;
&amp;lt;div class="row rss-job-table-headline"&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="span12 rss-job"&amp;gt;
        &amp;lt;div class="span6 rss-job-name"&amp;gt;Berufsbezeichnung&amp;lt;/div&amp;gt;
        &amp;lt;div class="span6"&amp;gt;
            &amp;lt;div class="span8 rss-job-location"&amp;gt;Ort&amp;lt;/div&amp;gt;
            &amp;lt;div class="span4 rss-job-more-details"&amp;gt;Details&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
      {% else %} 

        {% for row in table %}
&amp;lt;div class="row"&amp;gt;
    &amp;lt;div class="container"&amp;gt;
        &amp;lt;div class="span12 rss-job"&amp;gt;
        &amp;lt;div class="span6 rss-job-name"&amp;gt;{{ row["hs_name"] }}&amp;lt;/div&amp;gt;
        &amp;lt;div class="span6"&amp;gt;
            &amp;lt;div class="span8 rss-job-location"&amp;gt;
            {% for location in row["location"] %}
                {{ location|attr('name') }}{% if !loop.last %}, {% endif %}
            {% endfor %}
            &amp;lt;/div&amp;gt;
            &amp;lt;div class="span4 rss-job-button-wrapper"&amp;gt;&amp;lt;div class="button"&amp;gt;&amp;lt;a class="link" href="javascript&amp;amp;colon;;" data-href="{{ request.path }}"&amp;gt;Details&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        &amp;lt;/div&amp;gt;
        {% endfor %}
  {% endif %}
 {% if widget.mehr_jobs_anzeigen %}
 &amp;lt;div class="row"&amp;gt;
     &amp;lt;div class="container"&amp;gt;
     &amp;lt;div class="rss-job-more-jobs-divider"&amp;gt;&amp;lt;/div&amp;gt;
     &amp;lt;/div&amp;gt;
     &amp;lt;/div&amp;gt;
     &amp;lt;div class="container"&amp;gt;
 &amp;lt;div class="span12 rss-job-more-jobs"&amp;gt;
     &amp;lt;div class="rss-job-more-job-inner-wrapper"&amp;gt;
        &amp;lt;div class="rss-more-jobs-message"&amp;gt;&amp;lt;p&amp;gt;{{ widget.mehr_jobs_text }}&amp;lt;/p&amp;gt;&amp;lt;/div&amp;gt;
        &amp;lt;div class="rss-more-jobs-button"&amp;gt;&amp;lt;div class="button"&amp;gt;&amp;lt;a class="link" href="/jobs"&amp;gt;{{ widget.mehr_jobs_button_text }}&amp;lt;/a&amp;gt;&amp;lt;/div&amp;gt;&amp;lt;/div&amp;gt;
     &amp;lt;/div&amp;gt;
     &amp;lt;/div&amp;gt;
 &amp;lt;/div&amp;gt;
 
 {% endif %}
&amp;lt;/div&amp;gt;

&amp;lt;/div&amp;gt;
    &amp;lt;/div&amp;gt;
    
    
&amp;lt;script&amp;gt;
    $('.rss-job').last().addClass('last')
&amp;lt;/script&amp;gt;&lt;/PRE&gt;&lt;P&gt;The&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if  widget.branche =='1'%}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Anlagenbau’) %}
{% elif  widget.branche =='2'%}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Automotive’) %}
{% endif %}&lt;/PRE&gt;&lt;P&gt;part is, like the "widget.job_anzahl", an option(or widget) which is build into the module. Where the user/customer can customize the result that is shown by the module.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this is more understandable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 13:22:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202843#M7715</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-21T13:22:40Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202865#M7721</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;- "job_anzahl" is a choice field you created within the module, correct?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:44:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202865#M7721</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-21T14:44:36Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202867#M7723</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;- that's correct, yes&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:48:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202867#M7723</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-21T14:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202868#M7724</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- yea, I think the solution should still stand.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Use pprint filter to inspect your dictionary object&lt;/P&gt;&lt;PRE&gt;{{&lt;STRONG&gt;widget&lt;/STRONG&gt;.branche|pprint}} //probably results in null&lt;/PRE&gt;&lt;PRE&gt;{{&lt;STRONG&gt;module&lt;/STRONG&gt;.branche|pprint}} //probably has the data you're looking for&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;If you edit your choice field then choose "copy snippet", does it say module or widget?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 14:53:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202868#M7724</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-21T14:53:20Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202874#M7727</link>
      <description>&lt;P&gt;It says "module".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I'm inserted&lt;/P&gt;&lt;PRE&gt;{{&lt;STRONG&gt;module&lt;/STRONG&gt;.branche|pprint}}&lt;/PRE&gt;&lt;P&gt;in a line, that is getting displayed and the page I've created for testing is showing me "&lt;SPAN&gt;(String: 1)"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;edit: I've just&lt;/SPAN&gt;&lt;SPAN&gt; tried to modify the code like this:&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;{% if  module.branche == '1' %}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Anlagenbau’) %}
{% elif  module.branche == '2' %}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=Automotive’) %}
{% endif %}&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;but nothing changed. I've also tried to do&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if  module.branche == '1' %}
{% set table = hubdb_table_column(XXXXXX, ‘industry=Anlagenbau’) %}
{% elif  module.branche == '2' %}
{% set table = hubdb_table_column(XXXXXX, ‘industry=Automotive’) %}
{% endif %}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;But nothing changed either&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 15:24:34 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202874#M7727</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-21T15:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202895#M7734</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- Let's just make sure the "if" statements are the one's causing you problems. Can you drop this code in your module and toggle between your choices to at least make sure the if statements aren't evaluating properly?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if  module.branche == '1' %}
branch = 1
{% elif  module.branche == '2' %}
branch = 2
{% endif %}&lt;/PRE&gt;&lt;P&gt;be sure to save after each choice change and then hit preview.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 16:18:47 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202895#M7734</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-21T16:18:47Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202970#M7751</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&lt;/P&gt;&lt;P&gt;when I'm dropping your "code" into the module and toggle between the the choises I can see "branch = 1 " or "branch = 2 ". So the if-statement is correct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;Does it make any difference between a "select" and "multiselect"-column type for the "industry=XY"-part?&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% set table = hubdb_table_rows(XXXXXX, ‘industry=Anlagenbau’) %}&lt;/PRE&gt;&lt;P&gt;Just asking because the "industry" column is a multiselect-column&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 06:52:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/202970#M7751</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-22T06:52:33Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203002#M7755</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- Make sure you aren't querying the Hubdb by the label name, instead you should query it by the key value. Each dropdown option will have a value =&amp;gt; label pair.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, if your select looks like this for the industry in hubdb&lt;/P&gt;&lt;PRE&gt;&amp;lt;option value="1"&amp;gt;Anlagenbau&amp;lt;/option&amp;gt;&lt;/PRE&gt;&lt;P&gt;Your query should look like this:&lt;/P&gt;&lt;PRE&gt;{% set table = hubdb_table_rows(XXXXXX, ‘industry=1’) %}
&lt;STRIKE&gt;{% set table = hubdb_table_rows(XXXXXX, ‘industry=Anlagenbau’) %}&lt;/STRIKE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 11:31:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203002#M7755</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T11:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203007#M7757</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;- good idea.&amp;nbsp;&lt;BR /&gt;I've tried your suggestion, but it doesn't work. &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Here are some screens, how it looks in HubDB&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="how it looks in the HubDB table" style="width: 341px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11294i48BCC1F85F553F99/image-size/large?v=v2&amp;amp;px=999" role="button" title="180822-screen1.JPG" alt="how it looks in the HubDB table" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;how it looks in the HubDB table&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="how it looks, when I want to edit the column" style="width: 455px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/11295i0C55EBD213C15BE2/image-size/large?v=v2&amp;amp;px=999" role="button" title="180822-screen2.JPG" alt="how it looks, when I want to edit the column" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;how it looks, when I want to edit the column&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:03:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203007#M7757</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-22T12:03:27Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203018#M7762</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- If you do:&lt;/P&gt;&lt;PRE&gt;{% set table = hubdb_table_rows(XXXXXX, ‘industry=1’) %}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=2’) %}
{% set table = hubdb_table_rows(XXXXXX, ‘industry=3’) %}&lt;/PRE&gt;&lt;P&gt;You don't get different result sets? Do you know what the id of your choice options are, for sure?&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 12:38:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203018#M7762</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T12:38:55Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203029#M7768</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;- if I insert one after another without the if-statement, it works fine&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:01:29 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203029#M7768</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-22T13:01:29Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203032#M7771</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- cool, let's try 1 more thing, then I'm out of ideas &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;&lt;PRE&gt;{% set myFilter = '' %}
{% if  module.branche == '1' %}
    {% set myFilter = "industry=1" %}
{% if  module.branche == '2' %}
    {% set myFilter = "industry=2" %}
{% endif %}

{% set table = hubdb_table_rows(XXXXXX, myFilter) %}&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:10:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203032#M7771</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T13:10:48Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203040#M7773</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;- it works!!! You've made my day!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The only thing that left is to connect the other "if-statement" with this one.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've tried&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;{% if  module.job_anzahl =='5'%}
{% set table = hubdb_table_rows(XXXXXX, 'myFilter&amp;amp;limit=5') %}
{% elif  module.job_anzahl =='10'%}
{% set table = hubdb_table_rows(XXXXXX, 'myFilter&amp;amp;limit=10') %}
...
{%endif%}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/PRE&gt;&lt;P&gt;and&lt;/P&gt;&lt;PRE&gt;{% if  module.job_anzahl =='5'%}
{% set table = hubdb_table_rows(XXXXXX, myFilter&amp;amp;'limit=5') %}
{% elif  module.job_anzahl =='10'%}
{% set table = hubdb_table_rows(XXXXXX, myFilter&amp;amp;'limit=10') %}
...
{%endif%}&lt;/PRE&gt;&lt;P&gt;but non of those worked&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:00:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203040#M7773</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-22T14:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203041#M7774</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- Nice!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Are you trying to concatenate the strings now?&lt;/P&gt;&lt;PRE&gt;{% set myLimit = '' %}
{% if  module.job_anzahl =='5'%}
    {% set myLimit = "&amp;amp;limit=5" %}
{% elif  module.job_anzahl =='10'%}
    {% set myLimit = "&amp;amp;limit=10" %}
{% endif %}

{% set table = hubdb_table_rows(XXXXXX, myFilter~myLimit) %}&lt;/PRE&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:11:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203041#M7774</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T14:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203043#M7776</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2450"&gt;@tjoyce&lt;/a&gt;&amp;nbsp;- Yes!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot for the support!&amp;nbsp;&lt;/P&gt;&lt;P&gt;It works awesome!&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:16:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203043#M7776</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2018-08-22T14:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: HubDB filtering by custom module</title>
      <link>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203044#M7777</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;&amp;nbsp;- Woohoo! nice, glad it's working.&lt;/P&gt;</description>
      <pubDate>Wed, 22 Aug 2018 14:17:23 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/HubDB-filtering-by-custom-module/m-p/203044#M7777</guid>
      <dc:creator>tjoyce</dc:creator>
      <dc:date>2018-08-22T14:17:23Z</dc:date>
    </item>
  </channel>
</rss>

