Hi all,
Hope you’re doing well. I’m reaching out to ask for assistance. I’m trying to implement a feature that allows only one checkbox to be selected at a time. When a user checks one checkbox, all others should automatically uncheck — essentially mimicking radio button behavior using checkboxes.
Here’s my current code in the checkbox trigger (Custom Code):
console.log(“Params ====>”, params.eventDetail.value);
params.eventDetail.value ? ap.$(‘eba69387-31fc-4fc7-ae23-de0e88f5321e’, ‘value’, false) : ap.$(‘eba69387-31fc-4fc7-ae23-de0e88f5321e’, ‘value’, true);
However, my code isn’t working as expected. Initially, when I check and then uncheck a box, it behaves correctly. But when I check one checkbox and then check a different one, it doesn’t uncheck the previous one.
Could you please review and let me know what I might be missing?
I’ve also attached a screenshot for reference.
