+ Start a Discussion
Sfdc@SmithaSfdc@Smitha 

Can we use check box in dependent picklist?

Hi

 

Interview question:Can we use the check box in dependent picklists?Can anybody help me?

Best Answer chosen by Admin (Salesforce Developers) 
RovRov

Yes you can use Checkbox with a dependent picklist however Checkbox fields can be controlling fields but not dependent fields.

 

you can try this  -

 

On an Object , Create a Checkbox field D1__c , Create a Picklist field D2__c ,

Under the Custom fields and Relationship Section Click the 'Field Dependencies' button, Click New

In the controlling Field choose D1 and in Dependent field Choose D2

 

The page that opens next is very self explanatory. follow the instructions and you'll learn that Checkbox can be used in a dependent picklist.

 

 

 

All Answers

AmitSahuAmitSahu
I think it's a NO....If anyone knows please share a sample code :) will help other at some points for sure...
RovRov

Yes you can use Checkbox with a dependent picklist however Checkbox fields can be controlling fields but not dependent fields.

 

you can try this  -

 

On an Object , Create a Checkbox field D1__c , Create a Picklist field D2__c ,

Under the Custom fields and Relationship Section Click the 'Field Dependencies' button, Click New

In the controlling Field choose D1 and in Dependent field Choose D2

 

The page that opens next is very self explanatory. follow the instructions and you'll learn that Checkbox can be used in a dependent picklist.

 

 

 

This was selected as the best answer
AmitSahuAmitSahu
Sorry :) may bad... I should have read it once more... I thought you want a check box as a picklist value... :) thanks Rov ....