Get form submission data via Postmessage | Community
Skip to main content
Question

Get form submission data via Postmessage

  • June 6, 2025
  • 1 reply
  • 16 views

Hi, I’ve been using a third-party lead tracking tool to capture leads from my website along with their source.

Earlier, with the HubSpot form, the third-party script was able to detect the postMessage event that iframe forms typically send back to the parent page with the form fields.

However, after embedding a Typeform, we’re no longer able to get the form submission.

It just send form ID & submission ID. Attaching a screenshot of console log for reference

 



Does Typeform not send question & answer data in postMessage event?

Is there any workaround or solution for this?

Please note i am using this third part tool to detect form submission and get users journey and they don't support API/Webhook.

picsoung
Typeform
Forum|alt.badge.img+5
  • Developer Advocate @ Typeform
  • June 12, 2025

Hi ​@shivam 

We have even better than `postMessage` we have an SDK with callback.

You can check the doc over here
and use the onSubmit callback 

Not that this won’t give you the body of the response, just it’s id.
You would need to make a subsequent API call to get the full detail of the response.


Reply