function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion

How to auto populate address fields by just entering Zip-Code

Hi All,
I want to auto populate the contact address fileds(Area Name, City n all) by just entering ZipCode

Ex: If i enter Zipcode As :591317 then i want to auto populate following fields..
Mailing City    
Mailing State/Province    
Mailing Zip/Postal Code    
Mailing Country

Some Solution: I thought of creating a custom object to store this info and write a trigger to populate these values..

But Please suggest any other best ideas, like goodle api integration or free apps in apexachage or any other best solutions...
It shold be free ..
You can try Capture+ from appexchange.It is not a free app but worth every single penny.

Hi Ray..

I hope this will we can achieve this wrapper class... however I am working on this will update you soon if it is possible with wrapper class.



Scott HungScott Hung
I wrote a How-To about using a trigger to lookup zip code information at:

Hope this helps!
Siana DcruzSiana Dcruz

Hi All,

I tried using capture+ for this purpose, but still i was not able to achieve the same. Can any one please help me with this or provide me the code through which the address fields can be auto populated upon entering the Zip code.

Scott HungScott Hung
Have you looked at my blog post?  Reposting link again:
Siana DcruzSiana Dcruz
Hi Scott Hung,
I want to achieve this using postcode anywhere concept and not trigger
Scott HungScott Hung
You might check out a different blog post I wrote which lets you enter a zip code in a VF page:    

I'd also recommend looking at the 3rd blog post I wrote on this subject as it uses geonames which supports non-US zip codes (at the cost of more complexity):