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
Parteek Goyal 3Parteek Goyal 3 

How to group the values in lightning:checkboxGroup?

Hi All,

I got a requirement to group the values in lightning:checkboxGroup.
Exp: 
We have 6 values -- A1 , A2, B1, B2, C1, C2. 
We have to show the above values like this:
A1
A2
<br/>
B1
B2
<br/>
C1
C2

Please help me with this.

Thanks,
Parteek
ShirishaShirisha (Salesforce Developers) 
Hi Parteek,

Greetings!

Please find the sample code to use the lightning:checkboxGroup to achieve your requirement:

https://developer.salesforce.com/docs/component-library/bundle/lightning:checkboxGroup/example

Kindly let me know if it helps you and close your query by marking it as solved so that it can help others in the future.

Warm Regards,
Shirisha Pathuri