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.

Populating State and City Fields based on Zip Code

  1. ChrisSF
    Member

    We are using Gravity Forms as part of our user registration. For users within the United States, we'd like to dynamically populate State and City when a user enters their zip code. Our primary goal is to keep city names consistent in the DB, so we don't want users to have to enter them manually. I also thought there must be an easier way than using conditional logic and creating a field for the cities for every State.

    Is there a way to call on our location database to achieve this?

    Posted 12 years ago on Saturday November 12, 2011 | Permalink
  2. 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.

    You can find a list of developers or post your own job here to find help with your project.
    http://www.gravityhelp.com/forums/forum/job-board

    Posted 12 years ago on Saturday November 12, 2011 | Permalink
  3. ChrisSF
    Member

    Thanks for the info Rob. We'll look into this on the developers board.

    Posted 12 years ago on Saturday November 12, 2011 | Permalink
  4. No problem, good luck with your project.

    Posted 12 years ago on Saturday November 12, 2011 | Permalink

This topic has been resolved and has been closed to new replies.