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
roni shoreroni shore 

Hi guys- can anyone please suggest how to create a dependent checkbox using salesfroce lightning

can anyone please suggest how to create a dependent hirerachy checkbox using salesforce lightning. something like
- ab
  - abc
  -abcd

so if ab is checked so both abc & abcd should be checked and if any of the sub chek box is checked then ab is check....please suggest​
Best Answer chosen by roni shore
sfdcMonkey.comsfdcMonkey.com
hi roni ,
here is the sample code for your reference, you can take a reference for here i have done similar thing in this sample example : 
User-added image
http://www.sfdcmonkey.com/2017/02/23/delete-multiple-records-using-checkbox-lightning-component/  

Let us know if it helps you, and kindly mark it best answer it this answer helps you so it make proper solution for others in future 
thanks
 

All Answers

Baz DensonBaz Denson
did you mean a dependent picklist not checkbox?

Try this: http://www.sfdcmonkey.com/2017/02/18/dependent-picklist-fields-lightning-component/
roni shoreroni shore
No, I mean checkbox only, see the description or may be multiselect checkboxes..pls suggest
sfdcMonkey.comsfdcMonkey.com
hi roni ,
here is the sample code for your reference, you can take a reference for here i have done similar thing in this sample example : 
User-added image
http://www.sfdcmonkey.com/2017/02/23/delete-multiple-records-using-checkbox-lightning-component/  

Let us know if it helps you, and kindly mark it best answer it this answer helps you so it make proper solution for others in future 
thanks
 
This was selected as the best answer