You need to sign in to do that
Don't have an account?

Dependent Picklist value in Apex
Hi folks,
Can anyone tell me how to get the dependent picklist values based on the Controlling picklist value in Apex?
I need a sample code for that..
Thanks in advance
Karthick
Can anyone tell me how to get the dependent picklist values based on the Controlling picklist value in Apex?
I need a sample code for that..
Thanks in advance
Karthick
Best to go with If Condition
if(Picklist1VAl == A){
picklist2.add(picklist2ValueA1);
picklist2.add(picklist2ValueA2);
picklist2.add(picklist2ValueA3);
}
if(Picklist1VAl == B){
picklist2.add(picklist2ValueB1);
picklist2.add(picklist2ValueB2);
picklist2.add(picklist2ValueB3);
}