<?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: Get row item.name in lowercase and withous spaces in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424114#M22126</link>
    <description>&lt;P&gt;Ah, try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ row.departments|map('name')|join(' ')|lower }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(swapped "item" for "row")&lt;/P&gt;</description>
    <pubDate>Thu, 01 Apr 2021 14:49:20 GMT</pubDate>
    <dc:creator>dbeau79</dc:creator>
    <dc:date>2021-04-01T14:49:20Z</dc:date>
    <item>
      <title>Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424054#M22115</link>
      <description>&lt;P&gt;Hello everyone&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I need to get the values of a HubDB Multi-Select-Field and set all to lowercase and remove the spaces. How is this possible in HubSpot?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; {% for item in row.departments %}{{ item.name }}{% endfor %}"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 12:03:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424054#M22115</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-04-01T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424073#M22117</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;, so you want to get this for each row, right?&amp;nbsp; Not all the options available in the column?&amp;nbsp; If so you could do it as follows:&lt;/P&gt;
&lt;P&gt;{{ item.departments|map('name')|join(' ')|lower }} ... this would replace your for loop.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 13:24:58 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424073#M22117</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-04-01T13:24:58Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424104#M22122</link>
      <description>&lt;P&gt;Hello &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt; . Yes i need to get every row of the MultiSelect Field from the HubDB. When i replace my loop with your code i get no output. Can you please help me with more details?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:27:52 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424104#M22122</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-04-01T14:27:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424107#M22123</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;, Can you drop in the code for your whole table loop?&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:32:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424107#M22123</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-04-01T14:32:06Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424111#M22125</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;&amp;nbsp; Yeah for sure. This is my loop:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set tableId = 'team' %}

{% if tableId %}
&amp;lt;div class="module-team" style="margin: 0 auto;"&amp;gt;

  &amp;lt;div class="team_grid_wrapper" id="myTable"&amp;gt;
          {% set queryparam = "&amp;amp;orderBy=lastname&amp;amp;orderBy=firstname" %}

          {% set table = hubdb_table_rows('team', queryparam) %}
          {% for row in table %}
            &amp;lt;div class="team_block {% for item in row.departments %}{{ item.name }}{% endfor %} TEST"&amp;gt;
                &amp;lt;div class="team_img"&amp;gt;
                  &amp;lt;span&amp;gt;Here comes the img&amp;lt;/span&amp;gt;
                &amp;lt;/div&amp;gt;
                &amp;lt;div class="team_text_wrapper"&amp;gt;
                    &amp;lt;div class="team_text"&amp;gt;                
                        &amp;lt;h3&amp;gt;{{ row.lastname }} {{ row.firstname }}&amp;lt;/h3&amp;gt;
                    &amp;lt;/div&amp;gt; 
                &amp;lt;/div&amp;gt;
            &amp;lt;/div&amp;gt; {# Team block #}
          {% endfor %}  
  &amp;lt;/div&amp;gt; {# Team Grid Wrapper closed #}
&amp;lt;/div&amp;gt;
{% endif %}  &lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:41:38 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424111#M22125</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-04-01T14:41:38Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424114#M22126</link>
      <description>&lt;P&gt;Ah, try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ row.departments|map('name')|join(' ')|lower }}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;(swapped "item" for "row")&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 14:49:20 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424114#M22126</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-04-01T14:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424120#M22127</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;Thank you so much, the lowercase output is now working perfect! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; But how can i remove the spaces inside the names? Thank you so much for all your help! I really appreciate it!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 15:00:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424120#M22127</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-04-01T15:00:37Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424121#M22128</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/128198"&gt;@peesen&lt;/a&gt;&amp;nbsp;, happy to help... probably a prettier way to do this but this will work:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{{ row.departments|map('name')|join(',')|lower|replace(' ','-')|split(',')|join(' ') }}&lt;/LI-CODE&gt;</description>
      <pubDate>Thu, 01 Apr 2021 15:08:19 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424121#M22128</guid>
      <dc:creator>dbeau79</dc:creator>
      <dc:date>2021-04-01T15:08:19Z</dc:date>
    </item>
    <item>
      <title>Re: Get row item.name in lowercase and withous spaces</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424144#M22129</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/148115"&gt;@dbeau79&lt;/a&gt;Oh wow! This Version is even better than what i thought with just removing the spaces. Thank you so much for your help! Have a nice evening!&lt;/P&gt;</description>
      <pubDate>Thu, 01 Apr 2021 15:47:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Get-row-item-name-in-lowercase-and-withous-spaces/m-p/424144#M22129</guid>
      <dc:creator>peesen</dc:creator>
      <dc:date>2021-04-01T15:47:49Z</dc:date>
    </item>
  </channel>
</rss>

