Posting Form Data to Hubspot

Hi, I have a client who hosts on Wix, and I need to add to the form javascript where it should post data. Currently the form sends out an email after successful submission of the contact form. I would like to keep this functionality and resend the same data to api URL provided by HUBSPOT.

Inside the developer tools I only see the input field names and able to rename those, and below I can see the Wix API $w.ready empty event. Could you provide me with outline what are the steps to integrate posting to HUBSPOT alongside with existing functionality of the form? I have read articles like this: Velo Tutorial: Creating a Form for Editing Data in a Database Collection | Help Center | Wix.com, and it does not answer my question.

Thanks,
Elle

Hi Elle,
In order to post information to external API, you should use the Fetch API using the POST method. Check out the documentation here .

Good luck,
Tal.