RadioGroup: Determine if a radioButton is selected


#1

I don’t see an ‘isSelected’ or ‘isChecked’ method for a radioGroup. Is there another way to know if one of the radioButtons is selected? For example, three radioButtons in a Group all set to checked=false in properties. Is there a simple way to know if one has been checked without having to use getValue()? Thank you.


#2

The logical NOT (!) operator works with getValue:

if(!form_Test.getItem(“rb_test”).getValue()) {
console.log(“form_Test not yet selected”);
}