<?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: New HubSpot Form Builder – How to Trigger API Call and Redirect After Submission? in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1159619#M82402</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/948506"&gt;@LeoRebelatto&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new form builder now has a new set of&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/guides/api/marketing/forms/global-form-events" target="_blank" rel="noopener"&gt;global form events&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample for listening for a successful form submission:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;window.addEventListener('hs-form-event:on-submission:success', (event) =&amp;gt; {
  console.log('User successfully submitted the form!');
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
    <pubDate>Mon, 02 Jun 2025 13:39:21 GMT</pubDate>
    <dc:creator>evaldas</dc:creator>
    <dc:date>2025-06-02T13:39:21Z</dc:date>
    <item>
      <title>New HubSpot Form Builder – How to Trigger API Call and Redirect After Submission?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1158929#M82375</link>
      <description>&lt;P&gt;I'm integrating a HubSpot form with my app's trial registration. After the user submits the form, I need to make an API call, check the response, and redirect the user to a custom page based on the result.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;With legacy forms, I could use form submission events to handle this. But with the new form builder, those events aren't triggering. How can I achieve the same behavior with the new form setup?&lt;/P&gt;</description>
      <pubDate>Fri, 30 May 2025 17:31:01 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1158929#M82375</guid>
      <dc:creator>LeoRebelatto</dc:creator>
      <dc:date>2025-05-30T17:31:01Z</dc:date>
    </item>
    <item>
      <title>Re: New HubSpot Form Builder – How to Trigger API Call and Redirect After Submission?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1159619#M82402</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/948506"&gt;@LeoRebelatto&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The new form builder now has a new set of&amp;nbsp;&lt;A href="https://developers.hubspot.com/docs/guides/api/marketing/forms/global-form-events" target="_blank" rel="noopener"&gt;global form events&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here is a sample for listening for a successful form submission:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;window.addEventListener('hs-form-event:on-submission:success', (event) =&amp;gt; {
  console.log('User successfully submitted the form!');
});&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hope this helps!&lt;/P&gt;</description>
      <pubDate>Mon, 02 Jun 2025 13:39:21 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1159619#M82402</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-06-02T13:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: New HubSpot Form Builder – How to Trigger API Call and Redirect After Submission?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1160500#M82433</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/53048"&gt;@evaldas&lt;/a&gt;,&lt;BR /&gt;&lt;BR /&gt;This really helped, thank you so much!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 17:56:49 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1160500#M82433</guid>
      <dc:creator>LeoRebelatto</dc:creator>
      <dc:date>2025-06-03T17:56:49Z</dc:date>
    </item>
    <item>
      <title>Re: New HubSpot Form Builder – How to Trigger API Call and Redirect After Submission?</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1160518#M82434</link>
      <description>&lt;P&gt;Awesome, glad to hear!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jun 2025 18:16:39 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-HubSpot-Form-Builder-How-to-Trigger-API-Call-and-Redirect/m-p/1160518#M82434</guid>
      <dc:creator>evaldas</dc:creator>
      <dc:date>2025-06-03T18:16:39Z</dc:date>
    </item>
  </channel>
</rss>

