<?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: Clear Hubspot form fields once clicked on submit button in CMS Development</title>
    <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/708979#M30985</link>
    <description>&lt;P&gt;While you're in the Options section of the form, enable the "Always create contact for new email address" option. This should automatically disable "Pre-populate contact fields with known values" as well. Now when the page reloads, the form should be empty and create a new contact instead of updating the same contact in its place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More on these options here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/forms/create-forms#customize-your-form-options" target="_blank" rel="nofollow noopener noreferrer"&gt;https://knowledge.hubspot.com/forms/create-forms#customize-your-form-options&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 21 Oct 2022 18:27:15 GMT</pubDate>
    <dc:creator>SCustomerCare</dc:creator>
    <dc:date>2022-10-21T18:27:15Z</dc:date>
    <item>
      <title>Clear Hubspot form fields once clicked on submit button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/543482#M26528</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;so i have one modal button(inquiry form button): onclick inquiry form is displayed; i am using hubspot form.&amp;nbsp;&lt;BR /&gt;what i want is once i click on submit button thank you message should be diplayed&amp;nbsp; at the same time that form should be reset to blank form .can i achieve that? so that when user go and click on that modal button again they can enter another inquiry. but right now once the form is filled i can see thank you message every time i click on the modal button. the form gets reset only after i refresh the page.&lt;/P&gt;&lt;P&gt;i tried:-&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;hbspt.forms.create({&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;portalId: ‘2333626’,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;formId: ‘9a3ba836-f31f-4869-8d28-d264cc4259a8’,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;onFormSubmit: function($form) {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;$form[0].reset();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;but i am getting error&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 14:26:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/543482#M26528</guid>
      <dc:creator>YChuskit</dc:creator>
      <dc:date>2021-12-16T14:26:15Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Hubspot form fields once clicked on submit button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/543536#M26531</link>
      <description>&lt;P&gt;I don't believe you can do this with a Hubspot form. A workaround would be to have an html form display in place of the hubspot form, and use a &lt;A href="https://developers.hubspot.com/docs/cms/data/serverless-functions" target="_blank" rel="noopener"&gt;serverless function&lt;/A&gt; to submit the data that you would like to submit via the api. Then you can use javascript to clear the fields or do whatever else you need to do. Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 15:32:03 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/543536#M26531</guid>
      <dc:creator>Brownstephen101</dc:creator>
      <dc:date>2021-12-16T15:32:03Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Hubspot form fields once clicked on submit button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/543548#M26532</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/191804"&gt;@Brownstephen101&lt;/a&gt;&amp;nbsp; for quick reply , i will try html form&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Dec 2021 15:41:56 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/543548#M26532</guid>
      <dc:creator>YChuskit</dc:creator>
      <dc:date>2021-12-16T15:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Hubspot form fields once clicked on submit button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/544864#M26567</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/231573"&gt;@YChuskit&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN data-sheets-value="{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:&amp;quot;I dont thinks this is possible with Hubspot forms, but this is possible with JavaScript/ajax with HTML forms&amp;quot;}" data-sheets-userformat="{&amp;quot;2&amp;quot;:829,&amp;quot;3&amp;quot;:{&amp;quot;1&amp;quot;:0},&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;6&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;7&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;8&amp;quot;:{&amp;quot;1&amp;quot;:[{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0,&amp;quot;5&amp;quot;:{&amp;quot;1&amp;quot;:2,&amp;quot;2&amp;quot;:0}},{&amp;quot;1&amp;quot;:0,&amp;quot;2&amp;quot;:0,&amp;quot;3&amp;quot;:3},{&amp;quot;1&amp;quot;:1,&amp;quot;2&amp;quot;:0,&amp;quot;4&amp;quot;:1}]},&amp;quot;11&amp;quot;:4,&amp;quot;12&amp;quot;:0}"&gt;I don't think this is possible with Hubspot forms, but this is possible with JavaScript/ajax with HTML forms.&lt;BR /&gt;&lt;BR /&gt;Hope this helps!&lt;BR /&gt;If we were able to answer your query, kindly help the community by marking it as a solution.&lt;BR /&gt;Thanks and Regards.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 10:19:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/544864#M26567</guid>
      <dc:creator>webdew</dc:creator>
      <dc:date>2021-12-20T10:19:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Hubspot form fields once clicked on submit button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/544867#M26568</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/131510"&gt;@webdew&lt;/a&gt;&amp;nbsp;thank you i will try that out&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2021 10:22:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/544867#M26568</guid>
      <dc:creator>YChuskit</dc:creator>
      <dc:date>2021-12-20T10:22:21Z</dc:date>
    </item>
    <item>
      <title>Re: Clear Hubspot form fields once clicked on submit button</title>
      <link>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/708979#M30985</link>
      <description>&lt;P&gt;While you're in the Options section of the form, enable the "Always create contact for new email address" option. This should automatically disable "Pre-populate contact fields with known values" as well. Now when the page reloads, the form should be empty and create a new contact instead of updating the same contact in its place.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More on these options here:&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://knowledge.hubspot.com/forms/create-forms#customize-your-form-options" target="_blank" rel="nofollow noopener noreferrer"&gt;https://knowledge.hubspot.com/forms/create-forms#customize-your-form-options&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Oct 2022 18:27:15 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/CMS-Development/Clear-Hubspot-form-fields-once-clicked-on-submit-button/m-p/708979#M30985</guid>
      <dc:creator>SCustomerCare</dc:creator>
      <dc:date>2022-10-21T18:27:15Z</dc:date>
    </item>
  </channel>
</rss>

