Hide button with various conditions

@aapgcup
My suggestion would be to UPDATE your USER-AUTHENTICATION with the new “authentication”-API…first.
https://www.wix.com/velo/reference/wix-members/authentication-obj/login

The same for onLogin-processes…
https://www.wix.com/velo/reference/wix-members/authentication-obj/login

You are using a depricated and outdated one.

If you want to start when changing one of your Check-Boxes…

$w.onReady(()=> {
    $w("#checkbox1, #checkbox2").onChange((event)=> {check_Function();});  
});