APIs & Integrations

AdvCode
Member

Hubspot Meetings Calendar callback or onSubmit data?

Does the hubspot calendar not have a callback for retrieving form information? or to atleast know if a forms been submitted?

directly seeking form values via javascript doesn't seem like a solution due to cross-origin policy in iframes.

Im trying to impliment a external tool allowing conversion metrics to be analyzed without using hubspots webhooks/webflow. (having hundreds of client be asked to setup webflows isnt feasible)
This tool would be used for dozens of clients that want hubspot meetings but use a different web app. (so embedd calendar is the only choice.)

this is with a custom domain btw.

5 Replies 5
CVanPutten
Participant

Hubspot Meetings Calendar callback or onSubmit data?

window.addEventListener returns all the data from the booked meeting. very useful

0 Upvotes
mosquid
Participant

Hubspot Meetings Calendar callback or onSubmit data?

@AdvCode Hubspot SDK posts a message to the parent window. You won't be able to get the form data though. 
Just subscribe to the "message" event like so:

window.addEventListener("message", handleHubspotMessage);


If the form was submitted successfully the payload will look like `{meetingBookSucceeded: true}`

dennisedson
HubSpot Product Team
HubSpot Product Team

Hubspot Meetings Calendar callback or onSubmit data?

@webdew , @Jake_Lett , how are you all handling things like this?

0 Upvotes
AdvCode
Member

Hubspot Meetings Calendar callback or onSubmit data?

BUMP

0 Upvotes
dennisedson
HubSpot Product Team
HubSpot Product Team

Hubspot Meetings Calendar callback or onSubmit data?

@tjoyce , maybe you have some thoughts 😀

0 Upvotes