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
raysfdc1988raysfdc1988 

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 ..
 
CrmSuperStarCrmSuperStar
You can try Capture+ from appexchange.It is not a free app but worth every single penny.
vamshi(Nani)vamshi(Nani)

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.

 

Vamshi.

Scott HungScott Hung
I wrote a How-To about using a trigger to lookup zip code information at:  http://scotthung.wordpress.com/2014/10/08/how-to-zip-code-lookup-in-a-salesforce-trigger/

Hope this helps!
Scott
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: http://scotthung.wordpress.com/2014/10/08/how-to-zip-code-lookup-in-a-salesforce-trigger/
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:  https://scotthung.wordpress.com/2014/09/23/how-to-look-up-zip-code-for-city-state-visualforce-example/    

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):  https://scotthung.wordpress.com/2015/01/14/more-visualforce-zip-code-lookup/