# \#zip-code

**URL:** https://community.gravityforms.com/tag/zip-code/331.md

[Latest](https://community.gravityforms.com/latest.md) · [Categories](https://community.gravityforms.com/categories.md) · [Tags](https://community.gravityforms.com/tags.md)

---

## [Does not contain logic](https://community.gravityforms.com/t/does-not-contain-logic/14932)

<div class="topic-metadata">

**Author:** [@user5a096b2969b522.0](https://community.gravityforms.com/u/user5a096b2969b522.0)\
**Replies:** 4\
**Last updated:** [May 1, 2025, 1:35am UTC](https://community.gravityforms.com/t/does-not-contain-logic/14932 "2025-05-01T01:35:10Z")

</div>

I can see that on page conditions, there is no option for ‘does not contain’ which I really need for my use case. I am trying to work around it by doing a custom validation on a postcode field instead This example look…

---

## [Zip Code - Google Maps API](https://community.gravityforms.com/t/zip-code-google-maps-api/17145)

<div class="topic-metadata">

**Author:** [@user5d7127014eacc053](https://community.gravityforms.com/u/user5d7127014eacc053)\
**Replies:** 0\
**Last updated:** [March 26, 2024, 7:52pm UTC](https://community.gravityforms.com/t/zip-code-google-maps-api/17145 "2024-03-26T19:52:08Z")

</div>

My website uses a custom post type for all of its locations and those location pages all make use of the Google Maps API with ACF to display location for a store finder feature based on proximity to the zip code/city/sta…

---

## [Validating Zip for Single Line Fields](https://community.gravityforms.com/t/validating-zip-for-single-line-fields/12991)

<div class="topic-metadata">

**Author:** [@user608ed7c3b1243571](https://community.gravityforms.com/u/user608ed7c3b1243571)\
**Replies:** 1\
**Last updated:** [July 8, 2022, 1:14pm UTC](https://community.gravityforms.com/t/validating-zip-for-single-line-fields/12991 "2022-07-08T13:14:27Z")

</div>

My coding abilities are very limited - I apologize if this is an obvious answer. I have three zip fields on 2 forms that need to allow only 5 numbers. I took code from here - Zipcode validation for Gravity Forms (5 dig…

---

## [Allow zip code only from the US](https://community.gravityforms.com/t/allow-zip-code-only-from-the-us/12593)

<div class="topic-metadata">

**Author:** [@pedrorodriguez3265](https://community.gravityforms.com/u/pedrorodriguez3265)\
**Replies:** 2\
**Last updated:** [May 12, 2022, 12:42pm UTC](https://community.gravityforms.com/t/allow-zip-code-only-from-the-us/12593 "2022-05-12T12:42:11Z")

</div>

Hello, I want to allow only US zip codes, I’ve done some research but I have found nothing so far. Can someone guide me on how I can do this, please?

---

## [Zip Code Mapped to Address Field Doesn't Pass to Mailchimp](https://community.gravityforms.com/t/zip-code-mapped-to-address-field-doesnt-pass-to-mailchimp/12132)

<div class="topic-metadata">

**Author:** [@user5d34fe1900789911](https://community.gravityforms.com/u/user5d34fe1900789911)\
**Replies:** 3\
**Last updated:** [March 8, 2022, 9:53pm UTC](https://community.gravityforms.com/t/zip-code-mapped-to-address-field-doesnt-pass-to-mailchimp/12132 "2022-03-08T21:53:43Z")

</div>

My form includes the delivered Address Field. I only need Zip Code, so only that sub-field is checked to show, and the others (Street Address, etc) are hidden. My field label is Zip Code (U.S. Only) From there, I hav…

---

## [Validate ZIP Code against a list of codes](https://community.gravityforms.com/t/validate-zip-code-against-a-list-of-codes/1635)

<div class="topic-metadata">

**Author:** [@user5b9c6e950381d6.1](https://community.gravityforms.com/u/user5b9c6e950381d6.1)\
**Replies:** 15\
**Last updated:** [November 18, 2021, 4:14pm UTC](https://community.gravityforms.com/t/validate-zip-code-against-a-list-of-codes/1635 "2021-11-18T16:14:31Z")

</div>

I have a client that offers services in certain areas, and charges certain prices. So I would like clients to: Enter a Zip Code If the Zip matches a service area Zip Code, allow them to continue to fill out the rest of…

---

## [Zip Code Locator](https://community.gravityforms.com/t/zip-code-locator/8499)

<div class="topic-metadata">

**Author:** [@user5fdbfdff6c435573](https://community.gravityforms.com/u/user5fdbfdff6c435573)\
**Replies:** 9\
**Last updated:** [April 28, 2021, 6:17pm UTC](https://community.gravityforms.com/t/zip-code-locator/8499 "2021-04-28T18:17:40Z")

</div>

I am converting a non-WordPress 4-company multi-site sharing a database to a WordPress multisite. I would like to find out if Gravity Forms can return a page or pages based on form input rather than submitting content to…

---

## [Automatically fill city field when entering zip code](https://community.gravityforms.com/t/automatically-fill-city-field-when-entering-zip-code/7196)

<div class="topic-metadata">

**Author:** [@user5fd67321b5512184](https://community.gravityforms.com/u/user5fd67321b5512184)\
**Replies:** 4\
**Last updated:** [December 28, 2020, 12:54pm UTC](https://community.gravityforms.com/t/automatically-fill-city-field-when-entering-zip-code/7196 "2020-12-28T12:54:37Z")

</div>

Hi, I want my form to fill the city field according to the entered zip code automatically. I've found this code (for a totally different plugin, just an example): \<script\> $('#PLZ').bind('keyup change', fun…

---

## [Address Zip/postal code Mask](https://community.gravityforms.com/t/address-zip-postal-code-mask/7181)

<div class="topic-metadata">

**Author:** [@phukit](https://community.gravityforms.com/u/phukit)\
**Replies:** 3\
**Last updated:** [December 21, 2020, 1:35pm UTC](https://community.gravityforms.com/t/address-zip-postal-code-mask/7181 "2020-12-21T13:35:29Z")

</div>

Hi, I can’t seem to find any information on this, so I thought maybe someone can help me here. I am looking to add a mask to the postal code field. I have tried this code but it doesn’t work or needs further modificat…

---

## [Zip code validation against custom post type + custom field \[RESOLVED\]](https://community.gravityforms.com/t/zip-code-validation-against-custom-post-type-custom-field-resolved/5969)

<div class="topic-metadata">

**Author:** [@user5f16dc8950c76126](https://community.gravityforms.com/u/user5f16dc8950c76126)\
**Replies:** 7\
**Last updated:** [September 21, 2020, 4:15pm UTC](https://community.gravityforms.com/t/zip-code-validation-against-custom-post-type-custom-field-resolved/5969 "2020-09-21T16:15:27Z")

</div>

Hello, I am wanting to create a zip code validation within a form for a subset of zips. I see how I can do this with an array but I would like to have an office manager add and remove zips as the business needs it so I w…

---

## [Get city population after user's city is entered? \[RESOLVED\]](https://community.gravityforms.com/t/get-city-population-after-users-city-is-entered-resolved/5645)

<div class="topic-metadata">

**Author:** [@user5f15f943c6034976](https://community.gravityforms.com/u/user5f15f943c6034976)\
**Replies:** 7\
**Last updated:** [August 19, 2020, 8:04pm UTC](https://community.gravityforms.com/t/get-city-population-after-users-city-is-entered-resolved/5645 "2020-08-19T20:04:19Z")

</div>

Hello everyone! I am working for a home loans company in Canada, but basically we don’t service very small towns. I want to create some conditional logic that will show a rejection message if the person has a input a s…

---

## [Adding Zip Code and City autopopulate to a form](https://community.gravityforms.com/t/adding-zip-code-and-city-autopopulate-to-a-form/4473)

<div class="topic-metadata">

**Author:** [@user5b3404095ec5a8.1](https://community.gravityforms.com/u/user5b3404095ec5a8.1)\
**Replies:** 0\
**Last updated:** [April 15, 2020, 6:22pm UTC](https://community.gravityforms.com/t/adding-zip-code-and-city-autopopulate-to-a-form/4473 "2020-04-15T18:22:04Z")

</div>

So we want to make a form that works like this https://www.moving.com/ If you notice for the moving from - you put in the zip code and it comes to match a database. Then in the moving to - you can type a zip code or ci…

---

## [When using Address field, how can you make the Zip Code subfield required?](https://community.gravityforms.com/t/when-using-address-field-how-can-you-make-the-zip-code-subfield-required/2965)

<div class="topic-metadata">

**Author:** [@user5d92429487083014](https://community.gravityforms.com/u/user5d92429487083014)\
**Replies:** 1\
**Last updated:** [October 9, 2019, 5:41pm UTC](https://community.gravityforms.com/t/when-using-address-field-how-can-you-make-the-zip-code-subfield-required/2965 "2019-10-09T17:41:25Z")

</div>

I am using the Address field in a form that auto creates the different address sub-fields. We would like to make only the “Zip Code” sub-field required. How can we accomplish this?

---

## [Gravity Forms Zip Code Validation \[RESOLVED\]](https://community.gravityforms.com/t/gravity-forms-zip-code-validation-resolved/1843)

<div class="topic-metadata">

**Author:** [@dorys](https://community.gravityforms.com/u/dorys)\
**Replies:** 3\
**Last updated:** [May 14, 2019, 12:23pm UTC](https://community.gravityforms.com/t/gravity-forms-zip-code-validation-resolved/1843 "2019-05-14T12:23:57Z")

</div>

Hello, I’m using the gform\_field\_validation to verify the applicant is in the correct zip code before moving on. I enter a valid zip code but I still get the invalid message. Form can be seen here. This is my code /…
