@lillewill , this will execute the expand/collapse code only when the index of the radiogroup is 3. Keep in mind that 0 is the first option, 1 is the second option index, and so on.
export function radiobuttongroup1_change(event) {
if ($w('#radiobuttongroup1').selectedIndex = 3 {
if ($w('#box').collapsed) {
$w('#box').expand();
} else {
$w('#box').collapse();
}
}
}