0

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?

3
  • what does the markup of your lightning web component look like?
    – glls
    Commented Jul 15, 2021 at 17:53
  • @glls We can use the checkbox group example, developer.salesforce.com/docs/component-library/bundle/… but instead of the value, I want the label.
    – lipton98
    Commented Jul 15, 2021 at 18:07
  • Linked to related answers. Basically, you need to find the labels based on the value from the original list. This is the exact same behavior you'd except in plain JavaScript, jQuery, etc.
    – sfdcfox
    Commented Jul 15, 2021 at 18:14

0