Multi Dependent Picklists
Multi Dependent Picklists
Multi Dependent Picklists
The standard dependent picklist functionality in Salesforce, does not allow us to create dependent picklists of
more than one level. Here we would understand how to implement multi-picklist functionality using standard
Salesforce point and click customizations. This is a real time scenario implemented in one of my recent projects.
Business Scenario: We need to capture the address information of Leads/Contacts in the following manner:
Street
Town/City
District(County)
State/Province
Country
Pin Code/Zip Code.
The information provided to us is in an excel sheet with number of records exceeding over 150,000. The excel is in
the following format
Out of these, only Street would be ‘Text’. Rest all are supposed to be dependent picklists. So if a user selects
‘Country – A’ for example, the list of states should only show the states which are a part of ‘Country - A’. Similarly,
if a State is selected, the corresponding Districts (County), should only show the list of districts that are part of the
State so on and so forth.
Hence, if we drill down in order, by the time we reach Pin Code/Zip Code, we just have a single record. Also, as
mentioned earlier, we have over 150,000 unique records to insert.
Solution:
Since the standard Salesforce functionality poses a limit of just one dependent picklist, creating multi dependent
picklist is not possible. Also, since the number or records are huge, we would also like to add some kind of ‘Search’,
so that we can sort it out by putting in some keywords.
Step – 1: Create 4 custom objects – Country, State, District, Town, and Pin Code.
State
District
Town
Pin Code
Step – 3: Finally, since we need to capture the address information at Contact, Lead or Case detail page we need to
display them in their page layouts respectively. Here, I would just do for Leads.
Solution: The steps above not only resolve the issue by creating dependent Lookups which act similar to
dependent picklists, but also come with a standard search functionality, which could be used with large volumes of
data and provides a keyword search.