Hi,
I have my own website, and a form there is taking the information and pass the users directly to HS schedule a meeting form. I am trying to pass parameters from my website to the embedded hubspot meeting component.
This is the code that I am using to achieve it:
var link = "https://meetings.hubspot.com/a/consultation-call?embed=true&email=" + email;
document.getElementById('meeting-link').setAttribute('data-src', link);
let scriptEle = document.createElement("script");
scriptEle.setAttribute("src", "https://static.hsappstatic.net/MeetingsEmbed/ex/MeetingsEmbedCode.js");
scriptEle.setAttribute("type", "text/javascript");
document.body.appendChild(scriptEle);
Unfortunately, the email is not passed to the embedded meeting component.
Any idea on how to resolve it? Or what am I doing wrong?