<?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: How to hide a TR based on a module variable containing a token in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230412#M44662</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;, I've extended my code a little further in the hunt for answers.&amp;nbsp; This is the current state:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                          {% set showRow = personalization_token('contact.hubspot_owner_id.hs_main_phone', 'hide')|string  %}
                          {% if showRow != 'hide' %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              &amp;lt;span style="font-weight:700"&amp;gt;P&amp;amp;nbsp;&amp;lt;/span&amp;gt;
                              &amp;lt;a style="text-decoration:none; color:inherit; font-family:inherit; " href="tel:{{ showRow }}"&amp;gt;{{ showRow }}&amp;lt;/a&amp;gt;
                              &amp;lt;p&amp;gt;
                                Data on showRow: {{ showRow|pprint }}
                              &amp;lt;/p&amp;gt;
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the current output:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;P&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="tel:hide" target="_blank" rel="noopener"&gt;hide&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Data on showRow: (String: {"objectExpression":"contact_without_defaults.hubspot_owner_id.hs_main_phone","defaultExpression":"contact.hubspot_owner_id.hs_main_phone","localDefault":"hide"})&lt;/P&gt;&lt;P&gt;I was surprised by this as it indicates that showRow is still not being seen as a string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
    <pubDate>Tue, 02 Dec 2025 18:34:17 GMT</pubDate>
    <dc:creator>Jopitts</dc:creator>
    <dc:date>2025-12-02T18:34:17Z</dc:date>
    <item>
      <title>How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229222#M44631</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I'm trying to work out what dumb thing I'm doing here.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the following code in my table:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% if module.job_title != "hide" %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              {% inline_text field="job_title" value="{{ module.job_title }}" %}
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}
                          &lt;/LI-CODE&gt;&lt;P&gt;I have a variable defined in my module (job_title) which by default contains the following:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ personalization_token('contact.hubspot_owner_id.hs_job_title', 'hide') }}&lt;/LI-CODE&gt;&lt;P&gt;However, I am getting the row showing up with the word 'hide' in it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can I hide the TR based on the value of the variable, when the variable contains a personalisation token?&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 01:06:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229222#M44631</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-11-28T01:06:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229238#M44632</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;FWIW - Have tried this variant with no luck.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have this code in my module:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt; {% if module.job_title != 'OWNER.HS_JOB_TITLE' %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              {{ module.job_title }}
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}&lt;/LI-CODE&gt;&lt;P&gt;And for the job_title variable, I have now just set it to:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ contact.hubspot_owner_id.hs_job_title }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I still see the row, only with '&lt;SPAN&gt;OWNER.HS_JOB_TITLE' in it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Cheers&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Jo&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 03:12:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229238#M44632</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-11-28T03:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229327#M44633</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&lt;/SPAN&gt; and Happy Friday! &lt;span class="lia-unicode-emoji" title=":raising_hands:"&gt;🙌&lt;/span&gt;&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much for reaching out to the HubSpot Community and for sharing the code you used.&lt;BR /&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve gathered some helpful resources on this topic for you:&lt;BR /&gt;&lt;BR /&gt;- &lt;A href="https://developers.hubspot.com/docs/cms/reference/hubl/filters" target="_blank"&gt;HubL filters&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://developers.hubspot.com/docs/cms/reference/hubl/if-statements" target="_blank"&gt;If statements&lt;/A&gt;&lt;BR /&gt;- &lt;A href="https://developers.hubspot.com/docs/cms/reference/hubl/functions" target="_blank"&gt;HubL functions&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;Let’s also check in with our wonderful Top Experts: Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/601366"&gt;@sylvain_tirreau&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/63499"&gt;@SteveHTM&lt;/a&gt;&lt;/SPAN&gt; do you have any suggestions or tips to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Thank you all for your support, and wishing everyone a fantastic weekend!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 10:17:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229327#M44633</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-11-28T10:17:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229439#M44640</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;, thanks for replying.&amp;nbsp; There is a lot of interesting info in those links and I really appreciate you sending them through, but nothing in there gets me over the line sadly.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hopefully I'll get something back from one of the experts.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 17:36:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229439#M44640</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-11-28T17:36:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229460#M44641</link>
      <description>&lt;P&gt;All,&lt;/P&gt;&lt;P&gt;I've further simplified things, but with no better outcome.&amp;nbsp; I'm no longer using a module variable, just embedding the personalisation token directly into my code:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set showRow = personalization_token('contact.hubspot_owner_id.hs_main_phone', 'hide')  %}
                          {% if showRow != "hide" %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              &amp;lt;span style="font-weight:700"&amp;gt;P&amp;amp;nbsp;&amp;lt;/span&amp;gt;
                              &amp;lt;a style="text-decoration:none; color:inherit; font-family:inherit; " href="tel:{{ contact.hubspot_owner_id.hs_main_phone }}"&amp;gt;{{ contact.hubspot_owner_id.hs_main_phone }}&amp;lt;/a&amp;gt;
                              &amp;lt;span&amp;gt;showRow: {{showRow}}&amp;lt;/span&amp;gt;
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;And this is my output&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Jopitts_0-1764357811116.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/162711i9338E86157659370/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Jopitts_0-1764357811116.png" alt="Jopitts_0-1764357811116.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Given the if statement should only allow this to be displayed when the value of showRow is not hide, why on earth is it showing it when the value of showRow clearly&amp;nbsp;&lt;STRONG&gt;IS&lt;/STRONG&gt; hide?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Fri, 28 Nov 2025 19:24:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229460#M44641</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-11-28T19:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229985#M44650</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;, any thought on any other experts who could weigh in?&amp;nbsp; This can't be that hard of a question for someone to help out with.&lt;/P&gt;</description>
      <pubDate>Mon, 01 Dec 2025 17:34:48 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1229985#M44650</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-12-01T17:34:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230258#M44657</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&lt;/SPAN&gt; and thanks for getting back to us!&lt;BR /&gt;&lt;BR /&gt;Please note that our forum is a peer-to-peer support forum and all of our members are volunteers.&lt;BR /&gt;&lt;BR /&gt;The issue here seems to be with the personalization_token() that returns the actual value when the contact is known, not the default "hide" string.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Could you please check if the value is empty or equals the default instead or use an empty string check to see if that helps.&lt;BR /&gt;&lt;BR /&gt;Here is a documentation that might help: "&lt;A href="https://developers.hubspot.com/docs/cms/reference/hubl/functions" target="_blank"&gt;HubL functions&lt;/A&gt;".&lt;BR /&gt;&lt;BR /&gt;Now let's consult with our Top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/15355"&gt;@tmcginnis&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&lt;/SPAN&gt; and &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/537570"&gt;@RubenBurdin&lt;/a&gt;&lt;/SPAN&gt; can you think of other suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Thanks so much for your help and have a lovely day!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 11:54:12 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230258#M44657</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-12-02T11:54:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230288#M44658</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&amp;nbsp;, I think the issue is that personalization_token() isn't outputting a plain string, while your comparison is checking against a literal string "hide". This type mismatch would explain why the condition evaluates incorrectly even though it displays as "hide".&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Try adding the |string filter to convert the token output to a comparable string:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set showRow = personalization_token('contact.hubspot_owner_id.hs_main_phone', 'hide')|string  %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 14:01:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230288#M44658</guid>
      <dc:creator>Christensen</dc:creator>
      <dc:date>2025-12-02T14:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230405#M44661</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;, I'd already tried that.&amp;nbsp; Still no luck.&amp;nbsp; This code snippet in it's current state:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set showRow = personalization_token('contact.hubspot_owner_id.hs_main_phone', 'hide')|string  %}
                          {% if showRow != 'hide' %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              &amp;lt;span style="font-weight:700"&amp;gt;P&amp;amp;nbsp;&amp;lt;/span&amp;gt;
                              &amp;lt;a style="text-decoration:none; color:inherit; font-family:inherit; " href="tel:{{ showRow }}"&amp;gt;{{ showRow }}&amp;lt;/a&amp;gt;
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}&lt;/LI-CODE&gt;&lt;P&gt;Any other thoughts?&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 18:08:31 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230405#M44661</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-12-02T18:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230412#M44662</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;, I've extended my code a little further in the hunt for answers.&amp;nbsp; This is the current state:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;                          {% set showRow = personalization_token('contact.hubspot_owner_id.hs_main_phone', 'hide')|string  %}
                          {% if showRow != 'hide' %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              &amp;lt;span style="font-weight:700"&amp;gt;P&amp;amp;nbsp;&amp;lt;/span&amp;gt;
                              &amp;lt;a style="text-decoration:none; color:inherit; font-family:inherit; " href="tel:{{ showRow }}"&amp;gt;{{ showRow }}&amp;lt;/a&amp;gt;
                              &amp;lt;p&amp;gt;
                                Data on showRow: {{ showRow|pprint }}
                              &amp;lt;/p&amp;gt;
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is the current output:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;SPAN&gt;P&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="tel:hide" target="_blank" rel="noopener"&gt;hide&lt;/A&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Data on showRow: (String: {"objectExpression":"contact_without_defaults.hubspot_owner_id.hs_main_phone","defaultExpression":"contact.hubspot_owner_id.hs_main_phone","localDefault":"hide"})&lt;/P&gt;&lt;P&gt;I was surprised by this as it indicates that showRow is still not being seen as a string.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thoughts?&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 18:34:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1230412#M44662</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-12-02T18:34:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231315#M44672</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;More updates.&amp;nbsp; It turns out, my lack of knowledge meant I wasn't pulling the contact data correctly (and I may still not be).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My code now looks like this:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{% set showRow = contact_owner.additional_phone|replace(" ", "") %}
                          {% if showRow &amp;amp;&amp;amp; showRow != '' %}
                          &amp;lt;tr&amp;gt;
                            &amp;lt;td style="color:inherit; font-family:inherit; "&amp;gt;
                              &amp;lt;span style="font-weight:700"&amp;gt;C&amp;amp;nbsp;&amp;lt;/span&amp;gt;
                              &amp;lt;a style="text-decoration:none; color:inherit; font-family:inherit; " href="tel:{{ showRow }}"&amp;gt;||{{ showRow }}||&amp;lt;/a&amp;gt;
                              length: {{ showRow|length }}
                            &amp;lt;/td&amp;gt;
                          &amp;lt;/tr&amp;gt;
                          {% endif %}&lt;/LI-CODE&gt;&lt;P&gt;The output looks like this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN&gt;C&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="tel:" target="_blank" rel="noopener"&gt;||||&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;length: 26&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;why is the length showing as 26?&amp;nbsp; And if the length is 26, how are there no gaps between the || symbols I've prefixed and suffixed the output with?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Where are the HUBL experts?&lt;BR /&gt;&lt;BR /&gt;I must be doing something very silly, and it seems no one in the community can tell me what, which is astounding beyond belief.&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 01:38:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231315#M44672</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-12-05T01:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231348#M44673</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&amp;nbsp;,&amp;nbsp;I was so sure that I replied to you but it looks like I missed my opportunity to send my last&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Anyway, this happens because it's counting the characters from the object that was returned from&amp;nbsp;contact_owner.additional_phone|replace(" ", ""). What you need is the actual value of a property to make the comparison.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Upon digging around and testing HubL in the email editor, it looks like that you can't use the personalization_token for comparison because it loads AFTER the HubL logic therefore the long length.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;As a workaround, you can create a HubSpot email module with programmable email turned on for this then use the direct reference to the property without the personalization_token function which will render the value before the HubL logic.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I also don't think the&amp;nbsp;contact_owner.additional_phone is a valid property reference nor&amp;nbsp;contact.hubspot_owner_id.hs_main_phone but I know that&amp;nbsp;contact.hubspot_owner_id.firstname and&amp;nbsp;contact.hubspot_owner_id.lastname is a valid property references.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;This is now beyond an email personalization and would fall in the custom email module development work.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 05:24:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231348#M44673</guid>
      <dc:creator>Christensen</dc:creator>
      <dc:date>2025-12-05T05:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231523#M44678</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;, this is a custom email module.&amp;nbsp; It contains HTML and HUBL.&lt;/P&gt;&lt;P&gt;I'm not using the personalisation token approach, but just the direct contact properties (you can see from the code that I am going direct to contact_owner.&amp;lt;property&amp;gt; rather than the personalization approach).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will try turning the programmable email on regardless, and let you know the outcome.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 18:05:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231523#M44678</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-12-05T18:05:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231532#M44679</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/1007207"&gt;@Christensen&lt;/a&gt;&amp;nbsp;, turns out that turning on the programmable email option solved things.&amp;nbsp; It radically changed the way HUBL interpreted object properties.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&amp;nbsp; It's much appreciated&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Jo&lt;/P&gt;</description>
      <pubDate>Fri, 05 Dec 2025 18:20:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231532#M44679</guid>
      <dc:creator>Jopitts</dc:creator>
      <dc:date>2025-12-05T18:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a TR based on a module variable containing a token</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231920#M44693</link>
      <description>&lt;P&gt;Great to hear, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/5891"&gt;@Jopitts&lt;/a&gt;&lt;/SPAN&gt;! Thanks for sharing your solution, this will be helpful to others.&lt;BR /&gt;&lt;BR /&gt;If you have more questions, feel free to ask!&lt;BR /&gt;&lt;BR /&gt;Have a lovely day!&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Mon, 08 Dec 2025 13:28:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-TR-based-on-a-module-variable-containing-a-token/m-p/1231920#M44693</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2025-12-08T13:28:36Z</dc:date>
    </item>
  </channel>
</rss>

