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
pradyprady 

How to have a dependent picklist

Hi,

 

I have 2 picklists

 

 

 

 

Practice

PracticeA
PracticeB

Departments
Dep1
Dep2
Dep3
 

 

when i select PracticeA then only Dep1 and DEp2 should be available in the Department picklist and when PracticeB is selected then Dep3 should only be in the picklist.

 

Is this possible?

 

Thanks

 

Prady

Best Answer chosen by Admin (Salesforce Developers) 
AhmedPotAhmedPot

if you have 2 picklist fields, then you can make 1 field as controlliing and other as dependent.

goto setup--> object--> field dependency.

create new. You can select controlling and dependent field from drop down. Then you can map values from both picklists.

All Answers

pbattissonpbattisson

Hey Prady

 

 

I believe since Summer 10 there has been an easy way to do it (see http://blog.sforce.com/sforce/2010/05/dependent-picklist-improvements-in-summer-10.html).

 

Should be no problem at all :)

 

Paul

AhmedPotAhmedPot

if you have 2 picklist fields, then you can make 1 field as controlliing and other as dependent.

goto setup--> object--> field dependency.

create new. You can select controlling and dependent field from drop down. Then you can map values from both picklists.

This was selected as the best answer
pradyprady

Thanks guys...

I was looking at for solution which Ahmed provided as i was not using a VF page.