# Auto populate city state based on postal code

**URL:** <https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081>\
**Category:** HubSpot Ideas\
**Tags:** forms\
**Created:** [December 7, 2017, 6:53am UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081 "2017-12-07T06:53:29Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Yoshi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/yoshi/32/80343_2.png) [@Yoshi](https://community.hubspot.com/u/Yoshi)\
**Post date:** [December 7, 2017, 6:53am UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/1 "2017-12-07T06:53:29Z")

</div>

Currently, HubSpot form does not support auto populate city or state based on postal code or zip.

It would be great if we could have that feature for HubSpot form.

---

<div class="post-metadata">

**Author:** ![rstevens](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/rstevens/32/89820_2.png) [@rstevens](https://community.hubspot.com/u/rstevens)\
**Post date:** [September 21, 2018, 2:51pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/2 "2018-09-21T14:51:58Z")

</div>

YES. I came here specifically to post the same idea.

Here’s why this is so important: we know that submission rates tend to go down the longer a form is and/or the more fields you require. Having a ZIP Code decode running in the background is an easy way to shorten your forms, increase your submission rates, and still get all that sweet, sweet data into your CRM.

---

<div class="post-metadata">

**Author:** ![cursu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cursu/32/88643_2.png) [@cursu](https://community.hubspot.com/u/cursu)\
**Post date:** [October 2, 2018, 4:25pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/3 "2018-10-02T16:25:47Z")

</div>

Agreed, this would be a very useful additon. We currently do this via API.

---

<div class="post-metadata">

**Author:** ![NBoo](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/nboo/32/29572_2.png) [@NBoo](https://community.hubspot.com/u/NBoo)\
**Post date:** [October 26, 2018, 8:42pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/4 "2018-10-26T20:42:30Z")

</div>

The original post is a bit dated, but after searching around the web, it seems this is one of those things that still doesn’t have a clear solution- at least not one that’s been shared.

Amen rstevens! We need a zip code field for users to complete that auto-populates hidden fields for city and state.

Cursu, do you mind me asking what API you are using?

I found something that looked promising with ‘Javascript&colon; City/State Auto-Fill’ at [https://www.zipcodeapi.com/API](https://www.zipcodeapi.com/API) - created client and application keys for the solution, edited the JS to include the correct IDs etc, placed the JS in the footer of the page with the form, but nothing.

It would be great to know what I’m doing wrong, or if anyone else has found a way to incorporate ZipCodeAPI into HubSpot.

---

<div class="post-metadata">

**Author:** ![cursu](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cursu/32/88643_2.png) [@cursu](https://community.hubspot.com/u/cursu)\
**Post date:** [October 29, 2018, 9:29pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/5 "2018-10-29T21:29:21Z")

</div>

@NBooNBoo, I do not know all the technical details as I am not a developer. Long story short, we push all the contacts through API to our internal app, lookup zip in Google via Google API, push back to Hubspot via API: contact with city, state, country filled in. Would be good if this would be done out of the box with Hubspot as some people do not have the resources to do custom development.

---

<div class="post-metadata">

**Author:** ![kkeate](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/kkeate/32/43030_2.png) [@kkeate](https://community.hubspot.com/u/kkeate)\
**Post date:** [March 20, 2019, 3:47pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/6 "2019-03-20T15:47:45Z")

</div>

I have several clients who divide sales territories by city/sate which is a nightmare to deal with in HubSpot and a blank text field for city. I would love to to route by Zipcodes and assign city/state via a work flow. Please make this happen!

---

<div class="post-metadata">

**Author:** ![Gabriel\_Ramos](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/gabriel_ramos/32/102945_2.png) [@Gabriel\_Ramos](https://community.hubspot.com/u/Gabriel_Ramos)\
**Post date:** [May 7, 2019, 6:54pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/7 "2019-05-07T18:54:06Z")

</div>

Keeping this alive, I would help us immensely.

---

<div class="post-metadata">

**Author:** ![sgraham28](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sgraham28/32/84083_2.png) [@sgraham28](https://community.hubspot.com/u/sgraham28)\
**Post date:** [June 4, 2019, 2:29pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/8 "2019-06-04T14:29:54Z")

</div>

I agree this would be tremendously helpful. I’d like to add that if it could auto-populate County too that would be extrememly helpful.

---

<div class="post-metadata">

**Author:** ![FDXmktg](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/fdxmktg/32/14279_2.png) [@FDXmktg](https://community.hubspot.com/u/FDXmktg)\
**Post date:** [June 6, 2019, 6:54pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/9 "2019-06-06T18:54:32Z")

</div>

@NBoo Did you ever figure out what the issue was that prevented ZipCodeAPI from working for you? I was in the process of implementing this functionality when I came across your post.

So far I’ve:

1. Registered and received access into the ZipCodeAPI
2. Created a new JS file in the developer tool section of HubSpot (swapping out the Client Key info)
3. Duplicated the forms module
4. Attached the new JS file to the newly created form module
5. Developed a test page & inserted the new module
6. Submitted multiple tests

I am wondering if the JS is set up to call upon the correct fields i.e. zip vs zipcode, etc.

---

<div class="post-metadata">

**Author:** ![ericacowan](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/ericacowan/32/70586_2.png) [@ericacowan](https://community.hubspot.com/u/ericacowan)\
**Post date:** [September 4, 2019, 1:30pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/10 "2019-09-04T13:30:38Z")

</div>

Upvoting this! Would love to have this feature to reduce form friction and also help with accuracy. We have quite a few typos on submissions in the zip code field.

---

<div class="post-metadata">

**Author:** ![N\_Wilbanks](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/n_wilbanks/32/21752_2.png) [@N\_Wilbanks](https://community.hubspot.com/u/N_Wilbanks)\
**Post date:** [September 10, 2019, 3:57pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/11 "2019-09-10T15:57:15Z")

</div>

+1 for this feature! Please HubSpot, save us some fields!

---

<div class="post-metadata">

**Author:** ![peccho](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/peccho/32/53869_2.png) [@peccho](https://community.hubspot.com/u/peccho)\
**Post date:** [September 17, 2019, 5:43am UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/12 "2019-09-17T05:43:43Z")

</div>

I really want this feature. It would be great to have auto-fill address feature when creating a new contact.

---

<div class="post-metadata">

**Author:** ![SpeedySprint](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/speedysprint/32/75413_2.png) [@SpeedySprint](https://community.hubspot.com/u/SpeedySprint)\
**Post date:** [November 4, 2019, 9:48am UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/13 "2019-11-04T09:48:12Z")

</div>

I vote for this, Please implement Hubspot. Thanks

---

<div class="post-metadata">

**Author:** ![sketchism](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/sketchism/32/13631_2.png) [@sketchism](https://community.hubspot.com/u/sketchism)\
**Post date:** [January 16, 2020, 8:57pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/14 "2020-01-16T20:57:44Z")

</div>

Upvote!

---

<div class="post-metadata">

**Author:** ![khamer](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/khamer/32/7135_2.png) [@khamer](https://community.hubspot.com/u/khamer)\
**Post date:** [January 25, 2020, 7:26pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/15 "2020-01-25T19:26:02Z")

</div>

Plus 2

---

<div class="post-metadata">

**Author:** ![FrankMurray](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/frankmurray/32/9373_2.png) [@FrankMurray](https://community.hubspot.com/u/FrankMurray)\
**Post date:** [March 5, 2020, 8:48pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/16 "2020-03-05T20:48:54Z")

</div>

For the same good reasons mentioned above - Up Vote!

---

<div class="post-metadata">

**Author:** ![JoeMayall](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/joemayall/32/83822_2.png) [@JoeMayall](https://community.hubspot.com/u/JoeMayall)\
**Post date:** [June 3, 2020, 6:04pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/17 "2020-06-03T18:04:35Z")

</div>

Hi HubSpot Community,

My name is Joe, I’m the Ideas Forum Manager. I wanted to thank you for your thoughtful comments on this post. Your feedback helps us build better products.

I think this a great Idea! I’m happy to say we are currently reviewing this request and its feasibility. At this time I don’t have any details around timing or delivery, but all updates will be relayed on this thread.

I am changing the status of this idea to Being Reviewed as our team scopes out this work.

Best,  
Joe

---

<div class="post-metadata">

**Author:** ![FrankMurray](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/frankmurray/32/9373_2.png) [@FrankMurray](https://community.hubspot.com/u/FrankMurray)\
**Post date:** [June 3, 2020, 6:09pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/18 "2020-06-03T18:09:37Z")

</div>

Thanks Joe - looking forward to using it! One less field for the customer!

---

<div class="post-metadata">

**Author:** ![cursu2](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/cursu2/32/25270_2.png) [@cursu2](https://community.hubspot.com/u/cursu2)\
**Post date:** [September 26, 2020, 6:16pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/19 "2020-09-26T18:16:24Z")

</div>

Hopefully will do Canadian psotal codes as well

---

<div class="post-metadata">

**Author:** ![TheTeslaTaxi](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/theteslataxi/32/60590_2.png) [@TheTeslaTaxi](https://community.hubspot.com/u/TheTeslaTaxi)\
**Post date:** [October 6, 2020, 1:09pm UTC](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081/20 "2020-10-06T13:09:07Z")

</div>

@JoeMayall posted in June that this idea was being reviewed. It is now October si there any progress? Thanks

[Next page](https://community.hubspot.com/t/auto-populate-city-state-based-on-postal-code/4081.md?page=2)
