Add Google Places autocomplete to standard address field

SOLVE
Richard_Wein
Member

Hello. I would like to add Google Places autocomplete to Hubspot address fields. From searching the forum, I understand that this can be done for address fields in custom forms and CMS web pages (eg https://community.hubspot.com/t5/APIs-Integrations/Custom-Javascript-to-add-Google-Places-Autocomple...).

 

I don't suppose there's any way to do this for address fields in native (built-in) Hubspot pages, is there?

0 Upvotes
1 Accepted solution

Accepted Solutions
jackcoldrick
Solution
Top Contributor

Hi @Richard_Wein,

 

Apologies I misunderstood your question. Whilst it would be possible to incorporate some autocomplete/suggestive search logic into a Hubspot form it would not be possible to do this within the UI of HubSpot itself. 

 

Regards,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn

View solution in original post

0 Upvotes
4 Replies 4
jackcoldrick
Top Contributor

Hi @Richard_Wein,

 

I haven't specifically worked with Google Places but I have implemented autocompletion on HubSpot forms pulling data from an external data source (see here). Something like this would be possible using our native HubSpot forms (example 2 in the link I shared) however you would need to modify the embed code as per this documentation: 

 

If you are hoping to implement this on a HubSpot hosted page it's possible to utilize the form embed code by adding a rich text module and adding it when in source code view. Or alternatively you can use a custom module.

 

I hope this helps,

 

Jack

 

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn
Richard_Wein
Member

Hi @jackcoldrick 

 

Thanks very much for your reply.

 

Perhaps I should say before going any further that I'm far from an expert with HubSpot or web development. (I've done a little WordPress development.) So this is probably too advanced for me.

 

That said, I'm confused. Your example 2 seems to be a custom form (in Hubspot). I wanted to know whether it's possible to add an autocomplete feature to fields in standard Hubspot pages, such as the page for editing Contact properties. I wouldn't be able to embed code in such a page, would I?

 

Perhaps an alternative would be to create a custom form for editing Contact properties.

0 Upvotes
jackcoldrick
Solution
Top Contributor

Hi @Richard_Wein,

 

Apologies I misunderstood your question. Whilst it would be possible to incorporate some autocomplete/suggestive search logic into a Hubspot form it would not be possible to do this within the UI of HubSpot itself. 

 

Regards,

Jack

Jack Coldrick
Solutions Engineer @ HubSpot
Add me on LinkedIn

View solution in original post

0 Upvotes
YTopor
Participant

Hi Richard,

 

I'm curious if you found a solution on how to add Google Places autocomplete to a HubSpot form. I understand that this is only possible with some custom coding but still not clear on where this coding should take place. Is this possible on the embed form code or do we need to build a new form from scratch to acomplish this?

 

I would appreciate any help if you researched this further.

 

Thanks,

Yulya

 

0 Upvotes