<?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 Feature - onFormSubmitted callback function for embedded forms in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/686509#M56405</link>
    <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76947"&gt;@chrispower&lt;/a&gt;&amp;nbsp;did you ever get this figured out. I'm running into the same issue.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 29 Aug 2022 20:57:37 GMT</pubDate>
    <dc:creator>BCousin13</dc:creator>
    <dc:date>2022-08-29T20:57:37Z</dc:date>
    <item>
      <title>New Feature - onFormSubmitted callback function for embedded forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/284848#M26304</link>
      <description>&lt;H3&gt;What’s happening?&lt;/H3&gt;
&lt;P&gt;We are adding a new onFormSubmitted callback function to the &lt;A href="https://developers.hubspot.com/docs/methods/forms/advanced_form_options" target="_blank"&gt;advanced form options&lt;/A&gt;. This callback will fire after form submission data has been accepted by HubSpot, allowing you to perform an action when the submission is fully complete, such as displaying a confirmation or thank you message.&lt;/P&gt;
&lt;P&gt;This differs from the onFormSubmit callback, which is triggered during the submission process, but fires before the data has been sent to HubSpot.&lt;/P&gt;
&lt;H3&gt;When is this happening?&lt;/H3&gt;
&lt;P&gt;This feature is live today.&lt;/P&gt;
&lt;P&gt;If you have any questions, please join the discussion here.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 07 Aug 2019 19:06:04 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/284848#M26304</guid>
      <dc:creator>zwolfson</dc:creator>
      <dc:date>2019-08-07T19:06:04Z</dc:date>
    </item>
    <item>
      <title>Re: New Feature - onFormSubmitted callback function for embedded forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/306572#M29051</link>
      <description>&lt;P&gt;Is there any reason why this callback doesn't accept the $form object in the same way onFormSubmit does?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We've implemented custom embed code which uses onFormSubmit to grab the email from a submitted form, and passes it to the next form using a custom redirect url.&amp;nbsp; It also has a brief setTimeout before redirecting.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has worked fine until we started submitted these forms from mobile devices in the field with sometimes poor connectivity, and with multiple images on the form.&amp;nbsp; It appears the redirect happens prior to the form being completely submitted.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;onFormSubmitted didn't exist when we implemented this functionality, and it seems like an obvious fix, but I can't access the email in the onFormSubmitted callback so it doesn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Dec 2019 22:36:51 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/306572#M29051</guid>
      <dc:creator>chrispower</dc:creator>
      <dc:date>2019-12-09T22:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: New Feature - onFormSubmitted callback function for embedded forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/686509#M56405</link>
      <description>&lt;P&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/76947"&gt;@chrispower&lt;/a&gt;&amp;nbsp;did you ever get this figured out. I'm running into the same issue.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 29 Aug 2022 20:57:37 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/686509#M56405</guid>
      <dc:creator>BCousin13</dc:creator>
      <dc:date>2022-08-29T20:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: New Feature - onFormSubmitted callback function for embedded forms</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/1120081#M80778</link>
      <description>&lt;P data-start="71" data-end="78"&gt;Hi &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/370"&gt;@zwolfson&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P data-start="80" data-end="388"&gt;I wanted to provide an update regarding the ongoing issue we’ve encountered with the &lt;STRONG data-start="165" data-end="181"&gt;onFormSubmit&lt;/STRONG&gt; script, which continues to fail intermittently, leading to lost form submissions. This script often triggers before the submission is fully processed, resulting in the data not being recognized by HubSpot.&lt;/P&gt;
&lt;P data-start="390" data-end="717"&gt;As a result, form submissions may not appear in the system despite users successfully reaching the thank you page. After extensive testing, it’s clear that this issue has persisted over time, especially when the script is combined with custom redirect functionality or when forms are submitted under varying network conditions.&lt;/P&gt;
&lt;P data-start="719" data-end="957"&gt;We have worked to address this by removing the &lt;STRONG data-start="766" data-end="782"&gt;onFormSubmit&lt;/STRONG&gt; redirect, but I wanted to share this with the community for awareness. If you're using this script, I recommend testing thoroughly to ensure no data is lost...&lt;/P&gt;</description>
      <pubDate>Mon, 10 Mar 2025 09:25:25 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/New-Feature-onFormSubmitted-callback-function-for-embedded-forms/m-p/1120081#M80778</guid>
      <dc:creator>Franci</dc:creator>
      <dc:date>2025-03-10T09:25:25Z</dc:date>
    </item>
  </channel>
</rss>

