$w.onReady( function () {
$w( ‘#radioGroup1’ ).onClick ( (event, $w) => {
resetRadioButtons();
$w( ‘#voteButton’ ).show();
let $item = $w.at (event.context)
$w( ‘#radioGroup1’ ).selectedIndex = 0 ;
console.log ( “Reset button works and button shows” );
})
});
export function resetRadioButtons () {
$w( ‘#radioGroup1’ ).selectedIndex = undefined;
}
export function radioGroup1_onChange (event,$w) {
$w( ‘#voteButton’ ).hide();
}