I’m glad if i could help you.
You could do it even more efficient…like this…
import {local} from 'wix-storage';
$w.onReady(function () {
$w("#radioGroup1").onChange(()=>{
let selectedIndex = ($w("#radioGroup1").selectedIndex).toString()
console.log(selectedIndex)
$w('#statebox1').changeState(selectedIndex)
});
});
All you will have to change are the STATE-IDs of each STATE in your MSB(multi-state-box) ----> “1” / “2” / “3” and so on…
Good luck.