Populate City and State from Zip

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
Chris Hajer
Key Master

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
rcgroup
Member

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
Carl Hancock
Administrator

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
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!