<?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 Limit number of characters on a text widget in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Limit-number-of-characters-on-a-text-widget/m-p/736464#M32100</link>
    <description>&lt;P&gt;So I have a text widget that I'm using to add text content to a Hubspot site. The client needs that it's able to be capped at a certain number of characters, say 400 so that one can not type beyond the specified number of characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot of the widget that I'm talking about.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="In the Design tools" style="width: 359px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82265iA48FACF5D0213657/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-01-03 10-56-20.png" alt="In the Design tools" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;In the Design tools&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="How it looks like on the Landing page" style="width: 344px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82266i4A48E46267709290/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-01-03 10-59-00.png" alt="How it looks like on the Landing page" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;How it looks like on the Landing page&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The idea is that one shouldn't be able to type past a certain number of characters.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 08:02:22 GMT</pubDate>
    <dc:creator>LDouglas8</dc:creator>
    <dc:date>2023-01-03T08:02:22Z</dc:date>
    <item>
      <title>Limit number of characters on a text widget</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Limit-number-of-characters-on-a-text-widget/m-p/736464#M32100</link>
      <description>&lt;P&gt;So I have a text widget that I'm using to add text content to a Hubspot site. The client needs that it's able to be capped at a certain number of characters, say 400 so that one can not type beyond the specified number of characters.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a screenshot of the widget that I'm talking about.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="In the Design tools" style="width: 359px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82265iA48FACF5D0213657/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-01-03 10-56-20.png" alt="In the Design tools" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;In the Design tools&lt;/span&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="How it looks like on the Landing page" style="width: 344px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/82266i4A48E46267709290/image-size/large?v=v2&amp;amp;px=999" role="button" title="Screenshot from 2023-01-03 10-59-00.png" alt="How it looks like on the Landing page" /&gt;&lt;span class="lia-inline-image-caption" onclick="event.preventDefault();"&gt;How it looks like on the Landing page&lt;/span&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;The idea is that one shouldn't be able to type past a certain number of characters.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 08:02:22 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Limit-number-of-characters-on-a-text-widget/m-p/736464#M32100</guid>
      <dc:creator>LDouglas8</dc:creator>
      <dc:date>2023-01-03T08:02:22Z</dc:date>
    </item>
    <item>
      <title>Re: Limit number of characters on a text widget</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Limit-number-of-characters-on-a-text-widget/m-p/736913#M32124</link>
      <description>&lt;P&gt;Hey &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/415658"&gt;@LDouglas8&lt;/a&gt; based on my experience I think it's impossible to limit the characters in the content editor. Alternatively, what you can do is use the truncate hubL filter.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;you can do something like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;{{ module.text|truncate(400) }}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;more details in the documentation:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.hubspot.com/docs/cms/hubl/filters#truncate" target="_blank" rel="noopener"&gt;https://developers.hubspot.com/docs/cms/hubl/filters#truncate&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2023 01:13:27 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Limit-number-of-characters-on-a-text-widget/m-p/736913#M32124</guid>
      <dc:creator>felixmacaspac</dc:creator>
      <dc:date>2023-01-04T01:13:27Z</dc:date>
    </item>
  </channel>
</rss>

