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
MollymulesMollymules 

Populate picklist from url

Hey guys,

I've created a custom button that takes the user to the lead conversion page. I'm hoping to populate the Account Name picklist with a suggested account by passing the relevant info in the url. So far all I've been able to do is add the account id to the picklist, with it showing up as both the label and value in the picklist. 
Does anyone know of a way to pass both the account name and account id in the url so that they appears as an entry in the picklist with both the label and value set properly? 
Here's what I have so far:
/leadconvert.jsp?retURL=%2F00Qb0000003XecP&id=00Qb0000003XecP&accid=001b000000KsaDX
NehalNehal (Salesforce Developers) 
Hi,

Please refer to links below that will help you to populate picklist from URL:
1.https://threeheadsonapike.wordpress.com/2013/02/11/salesforce-url-hacking-prepopulating-fields/
2.http://salesforce.stackexchange.com/questions/12257/custom-button-to-fill-a-specific-picklist-value
3.http://stackoverflow.com/questions/13037529/prepopulating-mulit-select-picklist-from-url-using-pagereference-in-salesforce
4.http://writeforce.blogspot.com/2013/01/prepopulating-fields-using-url-hacking_24.html
5.http://raydehler.com/cloud/clod/salesforce-url-hacking-to-prepopulate-fields-on-a-standard-page-layout.html
6.https://developer.salesforce.com/page/Multi-select_picklists_in_URL

I hope this helps.