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.
Sep 15, 2020 10:47 AM
Hi @alanbrown, @jannaignatow, and @apmul
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 🙂
Feb 18, 2020 7:51 PM
Hi I'm trying to do the same thing myself. Did you ever get more specific instructions on how to accomplish this, and what might be the issues I'll run into when I implement? Thanks
Feb 19, 2020 10:42 AM
Sorry, never got a clear answer. I had to table this task for the time.
Apr 9, 2020 10:50 AM
Hi - I am dealing with this right now as well. Have you had any success?
Apr 9, 2020 3:33 PM
Not yet, no resources at this time
Aug 11, 2020 11:35 PM
I'm back to really hoping to tackle this at some point in 2020. Any luck getting this to work?
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.
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.