PLEASE NOTE: These forums are no longer utilized and are provided as an archive for informational purposes only. All support issues will be handled via email using our support ticket system. For more detailed information on this change, please see this blog post.

Populate City and State from Zip

  1. Hi, I have a question regarding ZIP codes.

    On my form I want customers to be able to enter a zip code and city and state would be automatically populated. Is this possible to accomplish ?

    Would be able to give me any hints as to how to go about doing that using gravity forms.

    Thanks

    Posted 12 years ago on Friday November 4, 2011 | Permalink
  2. You could do with with some jQuery on the front end, but it's a customization, to be sure. What service or library are you using the determine a city/state from an entered zip code?

    Posted 12 years ago on Tuesday November 8, 2011 | Permalink
  3. I have acquired a database of zip codes that is in both .xml and .xls formats

    I would appreciate a bit guidance as to how to implement it,

    Thanks

    Posted 12 years ago on Tuesday November 8, 2011 | Permalink
  4. You would have to write jQuery that checks the zip code against a database or XML file and then populates the fields accordingly. I don't have much guidance to provide on this, it's a customization and isn't built in functionality so it would require custom jQuery and code in order to implement something like this.

    Posted 12 years ago on Tuesday November 8, 2011 | Permalink
  5. pringletech
    Member

    I have a jquery script working on a test form that populates the city and state fields when the zipcode field has changed. I would like to integrate it into a gravityform but not sure where or what function to use. Any guidance would be greatly appreciated. -- Thanks!

    Posted 12 years ago on Saturday February 25, 2012 | Permalink
  6. pringletech
    Member

    Found my answer, added it to the themes header.php and it is working nicely.

    Posted 12 years ago on Sunday February 26, 2012 | Permalink