I am trying to show an upload button when a checkbox is checked and hide the button when it is unchecked. Following is the code that I typed but not showing the required result. Can someone please help me with it?
export function checkboxGroup1_click(event) {
if ($w( ‘#checkboxGroup1’ ).enabled){
$w( ‘#uploadButton1’ ).show();
}
else if ($w( ‘#checkboxGroup1’ ).enabled){
$w( ‘#uploadButton1’ ).hide();
}
}