m using 6 radioButtons, the user selects one and after clickin’ d submmit button he gets either d “congratulations” or “sorry” message printed from a label.
Now one of d radioButtons holds d rite answer which radioButton3 (Gall Blender).
After d user has taken d quizz i want all d components 2 b disabled.
But ma code it’s not workin’ :hair:
for (var i=1;i<=6;++i) {
this["r"+i].onRelease = function() {
var selectedRadioButton = myAdjective.selection;
var selectedRadioButtonLabel = selectedRadioButton;
if(selectedRadioButton == " Gall Bladder"){
statusMessage.text = "Congratulations";
}else{
statusMessage.text = "Sorry";
}
for (var j=1;j<=7;++j) {
this._parent["r"+j].enabled = false;
}
}
}