Hello, I Have a Site with 40 groups of radio buttons (#RG1, #RG2) . Choices L E V, I want to show, how many L E or V are selected

$w.onReady(() => {
const allRadiogroups = $w("RadioButtonGroup");
$w("RadioButtonGroup").onChange(event => {
const selectedIndexes = allRadiogroups.map(e => e.selectedIndex);
const numOfL = selectedIndexes.filter(e => e === 0).length;
const numOfE = selectedIndexes.filter(e => e === 1).length;
const numOfV = selectedIndexes.filter(e => e === 2).length;
$w("#text1").text = `Number of L is ${numOfL}`;
	//etc..
})
});

Will try and let you know, thanks!!

Works Like Magic!!! Thanks a lot for your help!!

You’re welcome :slight_smile: