Converting Checkbox Group data into a Yes or No

I have a checkbox group that goes into the database using tags, there are three values to the group. On my dynamic page I would like to only show a Yes if any or all of the boxes were selected or a no if none of the boxes were selected.

Hi,
Using the onChange event you can track the selected values, then if the array of the selected values has elements - you change the text to “yes” if it doesn’t - then the text is “no”. See code example below:

$w.onReady(function () {

$w("#checkboxGroup1").onChange( (event) => {
 let newValue = event.target.value;
 if (newValue.length > 0) {$w('#text2').text = "Yes"}
 else {$w('#text2').text = "No"}
} );

});

Click here to learn more about onChange event for Checkbox group.