Automatically populate Hubspot meeting scheduler calendar inputs using cookie values?

Hey everyone, I’m trying to figure out how to automatically fill in the calendar input fields in Hubspot’s meeting scheduler using values I’ve already stored in cookies. I’ve attempted to use JavaScript to target the form inputs, but since the form is inside an iframe, my script isn’t working.

The cookie values are all set and ready to go. I just need to find a way to get them into those calendar input fields without manual entry. Has anyone tackled this before? Any tips or tricks would be super helpful!

I’m not sure if there’s a Hubspot API or some other method I should be looking into. Maybe there’s a way to communicate with the iframe content? I’m a bit stuck, so any guidance would be awesome. Thanks in advance!

have u tried using the hubspot api? it might let u update the scheduler inputs directly. another option could be postMessage() to communicate with the iframe, but that can be tricky. maybe check if hubspot has any built-in ways to pre-fill those fields from url parameters or smthing?