<?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 Prevent Form submissions by pressing enter in Sales Hub Tools</title>
    <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876330#M9463</link>
    <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In lead capture forms, can we stop the form submitting by pressing enter.&amp;nbsp; As clients are using it to create a paragraph and the are submitting the form before they have finished.&lt;/P&gt;</description>
    <pubDate>Wed, 08 Nov 2023 01:13:06 GMT</pubDate>
    <dc:creator>RWright1</dc:creator>
    <dc:date>2023-11-08T01:13:06Z</dc:date>
    <item>
      <title>Prevent Form submissions by pressing enter</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876330#M9463</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In lead capture forms, can we stop the form submitting by pressing enter.&amp;nbsp; As clients are using it to create a paragraph and the are submitting the form before they have finished.&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 01:13:06 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876330#M9463</guid>
      <dc:creator>RWright1</dc:creator>
      <dc:date>2023-11-08T01:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Form submissions by pressing enter</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876445#M9464</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/501700"&gt;@RWright1&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;an easy way to do so would be to have a checkbox at the end of the form for GDPR purposes, for example. This way, even if they press enter within one of the fields, unless they click that checkbox, which would be a required field, the form won't be submitted. &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; This way, you get what you wanted initially, plus you're GDPR compliant. Isn't that a win?! &lt;span class="lia-unicode-emoji" title=":grinning_face_with_smiling_eyes:"&gt;😄&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Let me know how you get on,&lt;/P&gt;
&lt;P&gt;Eli&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 09:13:13 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876445#M9464</guid>
      <dc:creator>elizheleva</dc:creator>
      <dc:date>2023-11-08T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent Form submissions by pressing enter</title>
      <link>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876718#M9467</link>
      <description>&lt;P&gt;The only way to do this would be through custom JS. You could use something like a &lt;A href="https://developer.mozilla.org/en-US/docs/Web/API/Event/preventDefault" target="_blank" rel="noopener"&gt;prevent default&lt;/A&gt; action to stop this.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It's worth noting however, it's expected by screen readers that tab switches fields and enter submits the form. I'm not entirely up to date with accessibility laws but I do believe not allowing enter to submit a form would be against best acessibility practices at best.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 08 Nov 2023 16:02:55 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/Sales-Hub-Tools/Prevent-Form-submissions-by-pressing-enter/m-p/876718#M9467</guid>
      <dc:creator>TomM2</dc:creator>
      <dc:date>2023-11-08T16:02:55Z</dc:date>
    </item>
  </channel>
</rss>

