How to reset radio buttons

Hi all,

I have a button, which when clicked, needs to reset my radio buttons (so that no option is selected).

Corvid Reference states “To reset the radio button group to have no option selected, set the value property to null or undefined.”

I have tried both “null” and “undefined” - both produce an error in my radio buttons.

I currently have:

export function Button_click(event) {
$w(“#radiobuttons”).value = null ;
}

Any help would be greatly appreciated.

Thanks

This

export function Button_click(event) {
    $w("#radiobuttons").selectedIndex = null;
}

Hi, this produced the same error.

I have found a work around though. I have just changed the design of the radio buttons so that when they are in “error”, they have the same appearance as if they were not in error. So the user won’t know there is an error happening. I have calculations that are based on the radio button selection. They can still work because I have the result override the error.