Get Value of Checkbox

Feel like I’m losing my mind. I’m trying to use some script to check if a check box is checked or not:

label1.labelText = “You must accept the Terms of Use before accessing this site.”;
console.log(checkbox1.checked);

But it just keeps returning undefined? Tried IsChecked too. Tried setting to Boolean. Any direction would be great. Thx.

Hi Danny,

It should be checkbox1.control.value.

or if (checkbox1.control.value == true){
// do something
}

Hope this helps!

2 Likes