Oct 28, 2019 5:26 PM
I'm using an embedded HubSpot form on my site. I'd like to improve it so that users can fill in the address field and it automatically populates the city, zip, country, etc... using the Google Places API.
I've found some related threads here, but nothing that offers up a clear solution for this use case (an embedded form). Can anyone who had accompished this perhaps share the code they have used? I've been deep into this tutorial from Google but seem to be lacking some understanding around passing the returned information back into the form.
Oct 30, 2019 4:58 PM
Hey @alanbrown ,
I'm not particularly familiar with the Google Places API, so I'm not sure I'll be any help there. That said, I can give you some resources that might make the HubSpot side of things a bit easier!
Check out the following two docs for details on Global Form Events & Customizing the Form Embed code for details on how to trigger code based on specific form lifecycle events. Finally, check this article on Manipulating forms with jQuery for some tips on making changes to your HubSpot form fields.
Feb 19, 2020 12:41 PM
thanks for the reply! bummer but totally understandable. I'm going to see if I can get the work done with some limited time I have available in Q2 with a vendor with these skills. If I'm successful I'll let you know.
Sep 15, 2020 10:47 AM
This idea was submitted here: https://community.hubspot.com/t5/HubSpot-Ideas/Autocomplete-adress-form-fields-with-Google-maps/idi-...
Please upvote it so HubSpot will hopefully get this done for us 🙂