Questions tagged [lightning-checkbox-group]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
0 votes
1 answer
125 views

Fetching mulitiselect picklist values for <lightning-checkbox-group>

I'm using getPicklistValues to fetch the multiselect picklist values in LWC and using it for <lightning-checkbox-group>. But it is not showing anything. And if I use same code for <lightning-...
Ruturaj Chothe's user avatar
1 vote
1 answer
580 views

How to uncheck all checked boxes in lightning-checkbox-group in lwc on button click?

I have a lwc checkbox group. I have a cancel button where I need to uncheck all the checkboxes. The checkbox group shows data correctly but my code is not working and nothing happens when I click the ...
amitsingh6651's user avatar
0 votes
0 answers
216 views

How to render an array of objects (label,value pair) effectively on a lightning checkbox group functioning as a dropdown?

I need a checkbox group as a dropdown and have the following array formed in LWC JS handleShowingStateFilters(resultSet){ this.stateFilterOptions = []; this.tempArray = Object.keys(...
amitsingh6651's user avatar
0 votes
1 answer
1k views

How to dynamically check all the checkboxes on a lightning-checkbox-group

I am trying to use a lightning-input checkbox to check/uncheck all the options on a lightning-checkbox-group but the querySelector keeps returning no values. This is the HTML: <lightning-input type=...
flor's user avatar
  • 395
0 votes
1 answer
659 views

How to display lightning-checkbox-group with normal, not bold, label?

This is what I see: This is the HTML code: <div class="slds-grid"> <div class="slds-col slds-size_1-of-12"> <lightning-checkbox-group name=&...
Sander de Jong's user avatar
1 vote
1 answer
488 views

In LWC Model Popup save selected checkboxes in text field and hold selected values when refresh

model popup created. but trying to save selected checkbox values in text field as comma separated values(contacts title) not working and once saved when we refresh the page and open the popup up it ...
Sandeep's user avatar
  • 11
0 votes
1 answer
238 views

Save checkbox group in LWC

how to save these selected checkbox group values into any text field as comma seperated values of account record using apex in lwc. HTML: <lightning-checkbox-group name="Checkbox Group" ...
Sandeep's user avatar
  • 11
0 votes
1 answer
535 views

lightning record Edit from on load for checkbox group in LWC

I am saving selected checkbox group values in a text field as a comma separated values, but when page reloaded the check box group not displaying with selected values. JS: import { LightningElement,...
Sandeep's user avatar
  • 11
1 vote
1 answer
184 views

Salesforce Aura lightning:checkboxGroup

I have an existing Aura component that I need to add some help text to. I have a lightning:checkboxGroup that I need to add some help text to one of the options. The code is below. What I need to do ...
Travis's user avatar
  • 352
0 votes
0 answers
353 views

How do I get the label from a selected checkbox? [duplicate]

It's a lightning web component. event.detail.label doesn't work and event.detail.value only gives me the value. Can someone help please?
lipton98's user avatar
0 votes
1 answer
1k views

Get name from Checkbox Group onchange event in Lightning Web Component

I currently have a checkbox group in a lightning web component and I have an onchange function setup to handle a selection. I have been reading the documentation, but can't find any information to ...
Greg's user avatar
  • 25
0 votes
1 answer
171 views

Add hyperlink to checkboxGroup

I'm using the <lightning:checkboxGroup /> aura component to display a list of files that can be selected and then deleted. All of this works fine. My question is if it is possible to make the ...
Dman100's user avatar
  • 2,435
0 votes
2 answers
3k views

lightning-checkbox-group display horizontally

currently, I'm passing in a options array to the options attribute of a lightning-checkbox-group. I need to mimic the behavior of that tag, but I need to do it in html because I don't think I can get ...
mackmama's user avatar
  • 709
1 vote
1 answer
2k views

How to determine if an option in lightning-checkbox-group in LWC is unchecked

How do I determine which checkbox in a lightning-checkbox-group is unchecked? I want to filter results based on selected checkbox. I have tried using both lines below in the onchange event ...
Pauline's user avatar
  • 375
0 votes
1 answer
1k views

lwc lightning-checkbox-group - display checkboxes horizontally [duplicate]

Can I display the checkboxes horizontally using lightning-checkbox-group tag? <lightning-checkbox-group onchange={handleChange} name={...
mackmama's user avatar
  • 709