<?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: Form input field sizing in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Form-input-field-sizing/m-p/936215#M38174</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/522306"&gt;@MOutinen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;changing the width of the inputs is definetely possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I assuming right that you're embeding HS forms in a WordPress?&lt;/P&gt;
&lt;P&gt;If so there are a few things to keep in mind:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;disabling the default CSS of the form might be helpful. This feature is only available in Pro and Enterprise. I'm putting a few more helpful embed code modifactions below&lt;/LI&gt;
&lt;LI&gt;Your WP theme is responsible for the form styling. So you'll need to apply changes in the WP Theme, not HubSpot&lt;/LI&gt;
&lt;LI&gt;Conditional logic fields are always full-width by default (CSS flex styling can be applied) in HS&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Default form embed code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "XXX",
    formId: "XXXXXXXX-XXXXXXXXX-XXXXXXX"
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;exclud default CSS via modification:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "XXX",
    formId: "XXXXXXXX-XXXXXXXXX-XXXXXXX",
    css: ""
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can add a custom class as well&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "XXX",
    formId: "XXXXXXXX-XXXXXXXXX-XXXXXXX",
    css: "",
    cssClass: "MY-CUSTOM-CLASS"
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a doc about all &lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;embed-code modification&lt;/A&gt; options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
    <pubDate>Fri, 01 Mar 2024 18:50:57 GMT</pubDate>
    <dc:creator>Anton</dc:creator>
    <dc:date>2024-03-01T18:50:57Z</dc:date>
    <item>
      <title>Form input field sizing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-input-field-sizing/m-p/935269#M38139</link>
      <description>&lt;P&gt;Is it possible to shorten the width of form input fields? We have a site that uses Gravity Forms and HS but are switching them to be strictly HS forms. The current form has the first name/last name fields as smaller width input fields and we would like to keep it that way(view image):&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MOutinen_0-1709211738544.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111800i7E61B98F2F6BC489/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MOutinen_0-1709211738544.png" alt="MOutinen_0-1709211738544.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;But it seems that without Gravity Forms integrated we can not do that?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="MOutinen_1-1709211806470.png" style="width: 400px;"&gt;&lt;img src="https://community.hubspot.com/t5/image/serverpage/image-id/111802i6628FFB73A008945/image-size/medium?v=v2&amp;amp;px=400" role="button" title="MOutinen_1-1709211806470.png" alt="MOutinen_1-1709211806470.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;We already have to add more fields because there are limits to HS conditional logic so would be great if we don't have to bring another restriction of using HS to our client.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 13:05:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-input-field-sizing/m-p/935269#M38139</guid>
      <dc:creator>MOutinen</dc:creator>
      <dc:date>2024-02-29T13:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: Form input field sizing</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Form-input-field-sizing/m-p/936215#M38174</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/522306"&gt;@MOutinen&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;changing the width of the inputs is definetely possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Am I assuming right that you're embeding HS forms in a WordPress?&lt;/P&gt;
&lt;P&gt;If so there are a few things to keep in mind:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;disabling the default CSS of the form might be helpful. This feature is only available in Pro and Enterprise. I'm putting a few more helpful embed code modifactions below&lt;/LI&gt;
&lt;LI&gt;Your WP theme is responsible for the form styling. So you'll need to apply changes in the WP Theme, not HubSpot&lt;/LI&gt;
&lt;LI&gt;Conditional logic fields are always full-width by default (CSS flex styling can be applied) in HS&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Default form embed code:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "XXX",
    formId: "XXXXXXXX-XXXXXXXXX-XXXXXXX"
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;exclud default CSS via modification:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "XXX",
    formId: "XXXXXXXX-XXXXXXXXX-XXXXXXX",
    css: ""
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;you can add a custom class as well&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;&amp;lt;script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"&amp;gt;&amp;lt;/script&amp;gt;
&amp;lt;script&amp;gt;
  hbspt.forms.create({
    region: "na1",
    portalId: "XXX",
    formId: "XXXXXXXX-XXXXXXXXX-XXXXXXX",
    css: "",
    cssClass: "MY-CUSTOM-CLASS"
  });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here's a doc about all &lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;embed-code modification&lt;/A&gt; options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;best,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Anton&lt;/P&gt;</description>
      <pubDate>Fri, 01 Mar 2024 18:50:57 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Form-input-field-sizing/m-p/936215#M38174</guid>
      <dc:creator>Anton</dc:creator>
      <dc:date>2024-03-01T18:50:57Z</dc:date>
    </item>
  </channel>
</rss>

