<?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: Web Forms: Customizing Error Message (Required Fields) in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1021379#M75550</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/804365"&gt;@RJosefs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can &lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;customise the Form Embed Code&lt;/A&gt; to add custom validation messages, translations and more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can only do this with a Pro or Enterprise subscription because the form must be set to Raw HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P style="font-size: 0.8rem;"&gt;Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of &lt;A href="https://www.webalite.com?utm_campaign=community-forum&amp;amp;utm_source=community&amp;amp;utm_content=signature" target="_blank"&gt;Webalite&lt;/A&gt; a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of &lt;STRONG&gt;Portal-iQ&lt;/STRONG&gt; the world's first automated &lt;A href="https://portal-iq.com?utm_campaign=community-forum&amp;amp;utm_source=community-forum&amp;amp;utm_content=signature" target="_blank"&gt;HubSpot Portal Audit&lt;/A&gt; that helps you work smarter with HubSpot.&lt;/P&gt;</description>
    <pubDate>Sat, 03 Aug 2024 22:12:36 GMT</pubDate>
    <dc:creator>Mike_Eastwood</dc:creator>
    <dc:date>2024-08-03T22:12:36Z</dc:date>
    <item>
      <title>Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1021000#M75544</link>
      <description>&lt;P&gt;Hello:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to customize the error message for required fields. The error message should be speficic to each field. For example:&lt;/P&gt;&lt;P&gt;"Please fill out your first name!"&lt;/P&gt;&lt;P&gt;"Please fill out your last name!"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here are 2 ideas for making this happen, but I need yoru experiuse in how to do this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 1: Append the message with the field name.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;translations: {&lt;BR /&gt;&amp;nbsp; en: {&lt;BR /&gt;&amp;nbsp; required: "Please fill out" + [name_of_field]&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Option 2: Used nested messages for each field.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;translations: {&lt;BR /&gt;&amp;nbsp; en: {&lt;BR /&gt;&amp;nbsp; Field:FirstName {&lt;BR /&gt;&amp;nbsp; required: "Please fill out first name!"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;&amp;nbsp; Field:LastName {&lt;BR /&gt;&amp;nbsp; required: "Please fill out last name!"&lt;BR /&gt;&amp;nbsp; }&lt;BR /&gt;}&lt;BR /&gt;}&lt;/P&gt;</description>
      <pubDate>Fri, 02 Aug 2024 20:34:40 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1021000#M75544</guid>
      <dc:creator>RJosefs</dc:creator>
      <dc:date>2024-08-02T20:34:40Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1021379#M75550</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/804365"&gt;@RJosefs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can &lt;A href="https://legacydocs.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="noopener"&gt;customise the Form Embed Code&lt;/A&gt; to add custom validation messages, translations and more.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can only do this with a Pro or Enterprise subscription because the form must be set to Raw HTML.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P style="font-size: 0.8rem;"&gt;Here to learn more about HubSpot and share my HubSpot Knowledge. I'm the founder of &lt;A href="https://www.webalite.com?utm_campaign=community-forum&amp;amp;utm_source=community&amp;amp;utm_content=signature" target="_blank"&gt;Webalite&lt;/A&gt; a Gold HubSpot Partner Agency based in Wellington, New Zealand and the founder of &lt;STRONG&gt;Portal-iQ&lt;/STRONG&gt; the world's first automated &lt;A href="https://portal-iq.com?utm_campaign=community-forum&amp;amp;utm_source=community-forum&amp;amp;utm_content=signature" target="_blank"&gt;HubSpot Portal Audit&lt;/A&gt; that helps you work smarter with HubSpot.&lt;/P&gt;</description>
      <pubDate>Sat, 03 Aug 2024 22:12:36 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1021379#M75550</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2024-08-03T22:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1022912#M75592</link>
      <description>&lt;P&gt;Thank you Mike,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the ability to "set to Raw HTML", but I still don't know where to create a custom validation message. Do I customize it in the embed code (on website) OR on the form itself (in HubSpot)? And can you send a screen shot or show me where this is done?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 14:58:45 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1022912#M75592</guid>
      <dc:creator>RJosefs</dc:creator>
      <dc:date>2024-08-06T14:58:45Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1022915#M75593</link>
      <description>&lt;P&gt;Thank you &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have the ability to "set to Raw HTML", but I still don't know where to create a custom validation message. Do I customize it in the embed code (on website) OR on the form itself (in HubSpot)? And can you send a screen shot or show me where this is done?&lt;/P&gt;</description>
      <pubDate>Tue, 06 Aug 2024 15:00:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1022915#M75593</guid>
      <dc:creator>RJosefs</dc:creator>
      <dc:date>2024-08-06T15:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1024333#M75711</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/804365"&gt;@RJosefs&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you are using one form, on one page, then I would customise the embed coded using the HTML Module on the page something like this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&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({
    portalId: "123456",
    formId: "AAAAAA-BBBB-CCCC-DDDD-123456789"
    locale: 'en',
    translations: {
      en: {
          required: "Hey! That's required!",
          invalidDate: "Please enter a real date",
          submitText: "Custom Submit Button Text",
          submissionErrors:{ 
             MISSING_REQUIRED_FIELDS: "Please fill in all required fields!" 
          },
          fieldLabels: {
            email: "Electronic mail"
          }
        }
      }
    });
&amp;lt;/script&amp;gt;&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you need to customise the form on several pages then I would create a &lt;A href="https://knowledge.hubspot.com/design-manager/create-and-edit-modules" target="_blank" rel="noopener"&gt;Custom Module&lt;/A&gt;, that customises the embed code, so you can reuse it.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It took me a while to get my head around it but it was completely worth the effort - I do this all the time.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have fun&lt;/P&gt;
&lt;P&gt;Mike&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Aug 2024 20:15:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1024333#M75711</guid>
      <dc:creator>Mike_Eastwood</dc:creator>
      <dc:date>2024-08-08T20:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1026383#M75813</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;I read your replies twice to make sure I did not miss anything. I do not see a solution for creating a custom error message for each required field. I only see a solution for customizing the error message for ALL fields (that's generic). I need this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;First Name Field =&amp;gt; Please fill in your first name.&lt;/P&gt;&lt;P&gt;Last Name Field =&amp;gt; Please fill in your last name.&lt;/P&gt;&lt;P&gt;Company Name Field =&amp;gt; Please fill in your company name.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Aug 2024 14:39:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1026383#M75813</guid>
      <dc:creator>RJosefs</dc:creator>
      <dc:date>2024-08-13T14:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1084550#M78977</link>
      <description>&lt;P&gt;Make sure you include the "," after the Form ID or this won't work.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Dec 2024 15:53:10 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1084550#M78977</guid>
      <dc:creator>ajwppa</dc:creator>
      <dc:date>2024-12-17T15:53:10Z</dc:date>
    </item>
    <item>
      <title>Re: Web Forms: Customizing Error Message (Required Fields)</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1130889#M81341</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/9259"&gt;@Mike_Eastwood&lt;/a&gt;! Looking to do this on a form I made but I can't find how to get the code added to the form. Is there a screenshot or screen recording that you can share?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Apr 2025 14:42:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Web-Forms-Customizing-Error-Message-Required-Fields/m-p/1130889#M81341</guid>
      <dc:creator>MTrzcienski</dc:creator>
      <dc:date>2025-04-02T14:42:04Z</dc:date>
    </item>
  </channel>
</rss>

