<?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: Custom form Field Validation in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-form-Field-Validation/m-p/360279#M35432</link>
    <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2815"&gt;@swarlop&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned by cbarley on &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/How-to-work-with-jquery-custom-validation-for-hubspot-form/td-p/226633" target="_blank" rel="noopener"&gt;this similar forum thread&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;we don't have a very easy way to override HubSpot default validation with custom validation, but you should be able to put your own validation code in the&amp;nbsp;&lt;CODE&gt;onFormSubmit&lt;/CODE&gt;&amp;nbsp;callback that's detailed here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.hubspot.com/docs/methods/forms/advanced_form_options&lt;/A&gt;. This thread goes over a few more options:&amp;nbsp;&lt;A href="https://integrate.hubspot.com/t/integration-with-jquery-validator-customized-validation/1172/12" target="_blank" rel="nofollow noopener noreferrer"&gt;Integration with JQuery Validator - customized validation&lt;/A&gt;&amp;nbsp;you may want to explore, as does this Medium article:&amp;nbsp;&lt;/EM&gt;&lt;A href="https://rschu.me/prevent-the-submit-of-any-hubspot-forms-after-a-successful-validation-5e1f230b14f1" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;EM&gt;https://rschu.me/prevent-the-submit-of-any-hubspot-forms-after-a-successful-validation-5e1f230b14f1&lt;/EM&gt;&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Fri, 07 Aug 2020 05:47:50 GMT</pubDate>
    <dc:creator>WendyGoh</dc:creator>
    <dc:date>2020-08-07T05:47:50Z</dc:date>
    <item>
      <title>Custom form Field Validation</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-form-Field-Validation/m-p/360105#M35403</link>
      <description>&lt;P&gt;We need a way for hubspot to validate a custom form field. If someone were to complete the form and text entered in the form feild already exists, we need to not let them go any further and receive a message.&amp;nbsp; How can we make hubspot validate this free text form field. Help is appreciated!&lt;/P&gt;</description>
      <pubDate>Thu, 06 Aug 2020 17:20:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-form-Field-Validation/m-p/360105#M35403</guid>
      <dc:creator>swarlop</dc:creator>
      <dc:date>2020-08-06T17:20:37Z</dc:date>
    </item>
    <item>
      <title>Re: Custom form Field Validation</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Custom-form-Field-Validation/m-p/360279#M35432</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/2815"&gt;@swarlop&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As mentioned by cbarley on &lt;A href="https://community.hubspot.com/t5/APIs-Integrations/How-to-work-with-jquery-custom-validation-for-hubspot-form/td-p/226633" target="_blank" rel="noopener"&gt;this similar forum thread&lt;/A&gt;,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"&lt;EM&gt;we don't have a very easy way to override HubSpot default validation with custom validation, but you should be able to put your own validation code in the&amp;nbsp;&lt;CODE&gt;onFormSubmit&lt;/CODE&gt;&amp;nbsp;callback that's detailed here:&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank" rel="nofollow noopener noreferrer"&gt;https://developers.hubspot.com/docs/methods/forms/advanced_form_options&lt;/A&gt;. This thread goes over a few more options:&amp;nbsp;&lt;A href="https://integrate.hubspot.com/t/integration-with-jquery-validator-customized-validation/1172/12" target="_blank" rel="nofollow noopener noreferrer"&gt;Integration with JQuery Validator - customized validation&lt;/A&gt;&amp;nbsp;you may want to explore, as does this Medium article:&amp;nbsp;&lt;/EM&gt;&lt;A href="https://rschu.me/prevent-the-submit-of-any-hubspot-forms-after-a-successful-validation-5e1f230b14f1" target="_blank" rel="nofollow noopener noreferrer"&gt;&lt;EM&gt;https://rschu.me/prevent-the-submit-of-any-hubspot-forms-after-a-successful-validation-5e1f230b14f1&lt;/EM&gt;&lt;/A&gt;"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Fri, 07 Aug 2020 05:47:50 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Custom-form-Field-Validation/m-p/360279#M35432</guid>
      <dc:creator>WendyGoh</dc:creator>
      <dc:date>2020-08-07T05:47:50Z</dc:date>
    </item>
  </channel>
</rss>

