We use cookies to make HubSpot's community a better place. Cookies help to provide a more personalized experience and relevant advertising for you, and web analytics for us. To learn more, and to see a full list of cookies we use, check out our Cookie Policy (baked goods not included).
Jul 1, 2022 10:22 AM
I'm trying to send the data from an external form into a Hubspot form using this endpoint:
I'm following the documentation from this link but I can't get the JS to work. I'm creating the function formv3() and calling it on submit with my site and form ID's but nothing happens. Looks like there is no need of authentication so I'm not sure if I'm missing any step, I didn't use my API key anywhere.
The form on HS and the data I'm trying to POST there as an example:
"fields": [
{
"objectTypeId": "0-1",
"name": "email",
"value": "example@example.com"
},
{
"objectTypeId": "0-1",
"name": "firstname",
"value": "Jeff"
}
],
Thank you for your time.
Jul 1, 2022 5:05 PM
Hey, @Víctor 👋 Thanks for sharing. The community will need more details to help understand the possible root causes here.
If possible, could you share:
Thanks for the additional details! — Jaycee
Jul 4, 2022 2:22 AM
Hi Jaycee, thank you very much for your answer. Sure I'll share the code: https://jsfiddle.net/9tz6xbpr/
I know we aren't retrieveing the form data yet, we are just trying to make the submit send static data first. I removed our ID's aswell just to share it.