<?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 module field so it never shows in the editor UI in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804063#M34503</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/574803"&gt;@alvarofranz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can set the module parameter "locked" to true to hide it from the editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[
 {
  "name": "button_text",
  "label": "Button text",
  "type": "text"
  "locked": true
 }
]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 07 Jun 2023 12:20:59 GMT</pubDate>
    <dc:creator>alyssamwilie</dc:creator>
    <dc:date>2023-06-07T12:20:59Z</dc:date>
    <item>
      <title>How to hide a module field so it never shows in the editor UI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804027#M34498</link>
      <description>&lt;P&gt;I have &lt;A href="https://community.hubspot.com/t5/CMS-Development/Force-HubSpot-module-to-take-values-passed-via-custom-variables/m-p/803688/highlight/true#M34489" target="_blank" rel="noopener"&gt;my reasons&lt;/A&gt; to ALWAYS hide a field in the editor UI, but I don't see any option to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Reading the docs, I came up with a "hack" to do this, which would be:&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;"visibility" : {
"controlling_field_path" : "whatever_other_field",
"controlling_value_regex" : "some-random-string-that-is-very-weird-86482",
"operator" : "EQUAL"
}&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This will hide the field unless the value of "&lt;EM&gt;whatever_other_field&lt;/EM&gt;" is "&lt;EM&gt;some-random-string-that-is-very-weird-86482&lt;/EM&gt;".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But I'm not happy with this solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wonder why there isn't a simple &lt;STRONG&gt;"hidden": true&lt;/STRONG&gt; property.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any other approach that is not so hacky?&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 11:31:43 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804027#M34498</guid>
      <dc:creator>alvarofranz</dc:creator>
      <dc:date>2023-06-07T11:31:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a module field so it never shows in the editor UI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804062#M34502</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/574803"&gt;@alvarofranz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;There is no built-in way to hide a module field in HubSpot. The workaround you mentioned is the only way to do it.&amp;nbsp;&amp;nbsp;Or You can use a CSS selector to hide the field from the editor UI. You can use a JavaScript function to hide the field from the editor UI.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 12:19:33 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804062#M34502</guid>
      <dc:creator>himanshurauthan</dc:creator>
      <dc:date>2023-06-07T12:19:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a module field so it never shows in the editor UI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804063#M34503</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/574803"&gt;@alvarofranz&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can set the module parameter "locked" to true to hide it from the editor.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[
 {
  "name": "button_text",
  "label": "Button text",
  "type": "text"
  "locked": true
 }
]&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Jun 2023 12:20:59 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/804063#M34503</guid>
      <dc:creator>alyssamwilie</dc:creator>
      <dc:date>2023-06-07T12:20:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to hide a module field so it never shows in the editor UI</title>
      <link>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/897465#M37236</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/574803"&gt;@alvarofranz&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;I believe you are searching for this:&lt;BR /&gt;&lt;BR /&gt;"visibility": {&lt;BR /&gt;"hidden_subfields": {&lt;BR /&gt;"opacity": true&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;{
        "name" : "bt_txt_color",
        "label" : "Text color",
        "required" : false,
        "locked" : false,
        "type" : "color",
        "visibility": {
          "hidden_subfields": {
            "opacity": true
          }
        },        
        "default" : {
          "color" : "#000000",
          "opacity" : 100
        }
      }&lt;/LI-CODE&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="visibility_lock.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/105979i93130CA505DAE2A6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="visibility_lock.png" alt="visibility_lock.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2023 10:53:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/How-to-hide-a-module-field-so-it-never-shows-in-the-editor-UI/m-p/897465#M37236</guid>
      <dc:creator>Kamil_KK</dc:creator>
      <dc:date>2023-12-22T10:53:16Z</dc:date>
    </item>
  </channel>
</rss>

