<?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: Callback in CTA popup in APIs &amp; Integrations</title>
    <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/988613#M74168</link>
    <description>&lt;P&gt;Nope, dug deeper. The form is of course in an iframe. So I can't add eventListener on the form inside og the frame.&lt;BR /&gt;&lt;BR /&gt;I think it might not be possible.&lt;/P&gt;</description>
    <pubDate>Fri, 07 Jun 2024 07:21:17 GMT</pubDate>
    <dc:creator>KHarlin</dc:creator>
    <dc:date>2024-06-07T07:21:17Z</dc:date>
    <item>
      <title>Callback in CTA popup</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/982582#M73932</link>
      <description>&lt;P&gt;I have a project, where we are tracking formsubmissions in 3. party tracking. We get a callback with the formID when submitted, great. But on forms in popups, I dont get the submitted values like I do on embedded forms.&lt;BR /&gt;Are there any way to get the submitted data in the callback when form is in a CTA popup? Seems like it should be, when the form is the same regardless if it's an embed or a popup.&lt;/P&gt;</description>
      <pubDate>Mon, 27 May 2024 11:55:46 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/982582#M73932</guid>
      <dc:creator>KHarlin</dc:creator>
      <dc:date>2024-05-27T11:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: Callback in CTA popup</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/982939#M73961</link>
      <description>&lt;P&gt;Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/768058"&gt;@KHarlin&lt;/a&gt;&lt;/SPAN&gt;,&lt;BR /&gt;&lt;BR /&gt;Thank you for asking the Community!&lt;BR /&gt;&lt;BR /&gt;I'd like to ask clarifying questions to better understand, please:&lt;BR /&gt;&lt;BR /&gt;1. If the popup form a HubSpot form? Or an external form?&lt;BR /&gt;2. Where is the popup added, on an external page? On a HubSpot page?&lt;BR /&gt;3. How do you track the form submission? Which third-party app is it?&lt;BR /&gt;&lt;BR /&gt;The more info, screenshots (without sensitive/confidential information), and details you can provide, the better the Community can assist.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I'd be happy to put you in touch with some of our Top Experts: Hi &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/341938"&gt;@MBERARD&lt;/a&gt;&lt;/SPAN&gt;, &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/324811"&gt;@zach_threadint&lt;/a&gt;&lt;/SPAN&gt; and &lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/17186"&gt;@Anton&lt;/a&gt; do you have suggestions to help &lt;SPAN style="background: var(--ck-color-mention-background); color: var(--ck-color-mention-text);"&gt;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/768058"&gt;@KHarlin&lt;/a&gt;&lt;/SPAN&gt;, please?&lt;BR /&gt;&lt;BR /&gt;Thanks a lot and have a great day!&lt;BR /&gt;&lt;BR /&gt;Best,&lt;BR /&gt;Bérangère&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 07:49:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/982939#M73961</guid>
      <dc:creator>BérangèreL</dc:creator>
      <dc:date>2024-05-28T07:49:24Z</dc:date>
    </item>
    <item>
      <title>Re: Callback in CTA popup</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/983036#M73971</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/230185"&gt;@BérangèreL&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for reaching out &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. It's a HubSpot form&lt;/P&gt;&lt;P&gt;2. It's on an external site (WordPress)&lt;/P&gt;&lt;P&gt;3. I just push the info to GTM datalayer, from there others take over&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The problem is that I only get the formID and id in the callback, not submitted values. If I insert the same form directly on the page, i get submitted values in the callback.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For the form in popup, I get a callback with eventname: onCallToActionFormSubmitted without submitted values&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For directly embedded forms in the content, I get a callback with eventname: onFormSubmitted with submissionValues.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would expect to get the same for both callbacks &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ken&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 10:42:16 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/983036#M73971</guid>
      <dc:creator>KHarlin</dc:creator>
      <dc:date>2024-05-28T10:42:16Z</dc:date>
    </item>
    <item>
      <title>Re: Callback in CTA popup</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/983607#M74003</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.hubspot.com/t5/user/viewprofilepage/user-id/768058"&gt;@KHarlin&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're right, ideally, the submitted data should be available in the callback regardless of the form placement (embedded or popup). However, HubSpot's current functionality has limitations for popups.&lt;BR /&gt;Here's what you can do:&lt;/P&gt;
&lt;P&gt;1. HubSpot offers global form events that fire at different stages of the form submission process. While the deprecated &lt;STRONG&gt;onFormSubmit&lt;/STRONG&gt; isn't ideal (it fires before data is sent), you can leverage the newer &lt;STRONG&gt;onBeforeFormSubmit&lt;/STRONG&gt; event. This event triggers before submission but after validation, allowing you to access the form element and potentially extract data using Javascript.&lt;/P&gt;
&lt;P&gt;2.&amp;nbsp;Here's a resource on using Global Form Events:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://legacydocs.hubspot.com/global-form-events" target="_blank"&gt;https://legacydocs.hubspot.com/global-form-events&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;"I hope this will help you out. Please mark it as &lt;STRONG&gt;Solution Accepted and upvote&lt;/STRONG&gt; to help another Community member.&lt;BR /&gt;Thanks!"&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2024 06:40:35 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/983607#M74003</guid>
      <dc:creator>GRajput</dc:creator>
      <dc:date>2024-05-29T06:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: Callback in CTA popup</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/988612#M74167</link>
      <description>&lt;P&gt;Hi Guarav,&lt;BR /&gt;&lt;BR /&gt;The global form events are not called on the form.&lt;BR /&gt;&amp;nbsp;I made a test, where I logged all events called in the process:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;onCallToActionReady&lt;/LI&gt;&lt;LI&gt;onCallToActionViewed&lt;/LI&gt;&lt;LI&gt;onCallToActionFormSubmitted&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;So it seems the like only way to do it, is to add my own eventlistener on the form tag, checking for submits. Storing the data and wait for the&amp;nbsp;onCallToActionFormSubmitted event, and then use the stored data.&lt;BR /&gt;&lt;BR /&gt;I was just hoping for a better solution, since I am happy with the way normal forms are working.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 07:16:24 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/988612#M74167</guid>
      <dc:creator>KHarlin</dc:creator>
      <dc:date>2024-06-07T07:16:24Z</dc:date>
    </item>
    <item>
      <title>Re: Callback in CTA popup</title>
      <link>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/988613#M74168</link>
      <description>&lt;P&gt;Nope, dug deeper. The form is of course in an iframe. So I can't add eventListener on the form inside og the frame.&lt;BR /&gt;&lt;BR /&gt;I think it might not be possible.&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jun 2024 07:21:17 GMT</pubDate>
      <guid>https://community.hubspot.com/t5/APIs-Integrations/Callback-in-CTA-popup/m-p/988613#M74168</guid>
      <dc:creator>KHarlin</dc:creator>
      <dc:date>2024-06-07T07:21:17Z</dc:date>
    </item>
  </channel>
</rss>

