Copy link to clipboard
Copied
I have two checkboxs. If the first is not check, the second can't be checked. Based on the value of the fist box I would like to turn off the second box.
v1=getField("First Box")
v2=getField("Second Box")
if (v1!="Yes" // how do I uncheck v2????
Thanks all.
Copy link to clipboard
Copied
If you want to disable second checkbox while first checkbox is not checked use this as 'Mouse UP' event of "First Box":
this.getField("Second Box").readonly = event.target.value == "Off" ? true : false;
Copy link to clipboard
Copied
Yes. Thank you.