You need to sign in to do that
Don't have an account?
angusgrant
Country Picklist S-contol or apex/vf?
Hi can anyone provide code or/and advise of which is currently the best way to get a country picklist to replace the text field provided natively by sf.
Thanks for your help.
I would create a custom pick list field with all the country options you want to use.
Create a workflow rule that will update the standard Country field with the value from the pick list field when ever the record is updated.
This will use all native Salesforce.com functionality with out having to use apex.
Check this : http://www.harmkorten.nl/salesforce/countriespicklist.zip
Countains a readme.txt with instructions, works great for me!
Unfortunately, this is the only place where you can put the solution like this. I agree it's not the most desirable place to put the code, but there's really no other way. If it's any consolation: Salesforce (Labs) published an app on the app Exchange (auto-complete), using this same approach.
By the way, I noticed some bugs in the script recently, where on the Account and Contact page, the country is not displayed correctly when re-editing a record (country IS saved correctly though). I will try to fix it and post an update asap :)
Latest version can be found at:
http://salesforce.harmkorten.nl/2010/salesforce-country-fields-as-picklists/