I need your help with form integration. I went through lot of questions and tickets here and I did not find an answer for my question. I also read API documentation but I suppose I dont have enough experience because I dont understand how to make it.
Submitting data from a custom form to HubSpot requires use of the Forms API - if you are unable to develop the API connection yourself, someone here may offer help, but, my imepression is, it’s quite a lot to ask.
If you know HTML/CSS, but the languages required for the API, you might have better success by embedding and styling a native HubSpot form - however, that would probably preclude the use of your nice country dialling code drop down.
If you have made some progress on the API front, but are encountering specific challenges, I recommend posting over on https://integrate.hubspot.com/
Thank you for your answer. I need to use my custom html markup, not hubspot form. What I have at the moment:
Two-step contact form, which works using ajax. So I collect all fields values using jQuery and then send a message using callback PHP function. As I understand I should proceed hubspot data sending in that callback function when an email message is sending, correct?
I dont ask to make this work for me, I just need to know from where to start because I don’t understand this clearly from forms API instructions. Thank you!
I have a site that uses the Web Self Storage (uhaul) api for unit reservations. This api has to be done on the backend. I also wanted the reservation customer info to be entered into our contacts on hubspot aswell.
first issue: Hubspot doesn’t allow server side language. In the case of the WWS api I had to build a proxy that changes the requested info from xml to Json on a javascript endpoint. That was some work to figure out but I hosted it on a godaddy server that I use for staging WP sites. After that It was a matter of integrating the Hubspot api. That was surprisingly easy, even with the WWS api in between the form and Hubspot. The documentation is pretty clear once you get over them not going step for step over how to connect.
You can use php, python, or probably most backend languages I can imagine. I chose php because I didn’t know much about python back then. Here is a sample of my code, but I pulled it out of a much larger function so you can really only use it as reference to compare to examples in the docs:
I think I finally made it. I used an example from Forms API description. I sent information to corresponding HubSpot form (which I created earlier) in ajax callback function after successful email message sending. It works well, and I see it saves all needed information into form submissions list.