How to bind dynamic values in the Checkbox

@Sam @NashitaAfrah How to bind the dynamic values in the Checkbox field I bind using loop but values not displayed please help with this

@Kannan This method of giving string interpolation inside the value field for an array of elements will not work, you have to give value using dom manipulation.

Take the ID, and find the label using ap.$(‘d3b….‘) then replace the label.

Kind of like this:

co.policyDetails.features.forEach((item, index) => {
const checkbox = ap.$(checkbox_ids) //you can take the ids from an array;

if (checkbox) {
const label = checkbox.shadowRoot.querySelector(‘label’);
if (label) {
label.textContent = item.text;
}
}
});

You might have to modify this logic according to your implementation

Also this logic should be performed once the dom is rendered properly

I hope this works