Sets or gets a checkbox's value.
value property is not related to whether the checkbox is checked or
not. To determine the checked status of a checkbox, use the
value property is used for storing a value that is associated with
It is not considered when evaluating the checkbox's validity
and it does not trigger an
onChange event when the value is modified.
Even if a checkbox is connected to a dataset, its
is not related to the value of the collection field it is connected to.
The field's value is determined by the checkbox's
Note: Changing a checkbox's
valuein code does not trigger an
Was this helpful?
1let myValue = $w("#myElement").value; // "42"
1$w("#myElement").value = "42";