Search.../

checked

Sets or gets whether the toggle switch is on or off.

Type:

booleanRead & Write

Was this helpful?

Get whether a switch is toggled on or off

Copy Code
1let isChecked = $w("#mySwitch").checked; // true
Set a switch to be toggled on

Copy Code
1$w("#mySwitch").checked = true;