Hi, I am trying to figure out how to prefill the email field of the embedded meeting widget. I tried to add a static email address by adding &email=what@ever.com to the data-src attribute of the meeting widget embed code, but it doesn't work, the field remains empty.
The same result when i open the url from the data-src in the browser (with the email parameter appended).
That is really odd, cause setting it as a URL parameter works fine for me. That is on a HubSpot website tho, I'll try if I can get this working on a non-hubspot site tomorrow.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.
I'm not trying to set the email address of a known contact. I have a form on one page (e.g. mywebsite.com/start) which asks for the users email address and redirects to the target page (e.g. mywebsite.com/target) where the meetings widget is embedded (via script).
The problem is, the embedded meeting widget won't take the email address given via url parameter, so when i open mywebsite.com/target?email=some@email.com , the email field in the meeting widget remains empty.
You should be able to set it as an URL param. So if you add &email=example@example.com to your URL, the email address should be prefilled. You can add the email address (with HubL) of a contact to every link that points to the meeting page like so:
<a href="https://example.com/meeting?email={{contact.email}}">Book a meeting</a>
I've tested the above solution, and it should work. Just replace the URL in the example for your URL.
Learn more about HubSpot by following me on LinkedIn or YouTube
✅ Did my answer solve your issue? Help the community by marking it as the solution.