Copy link to clipboard
Copied
I am composing a checklist and want to add a function where I check one box for at standard and all the required boxes will be ticked. The kicker is I also need to be able to untick boxes without removing the ticks from the rest of them. How do I export the value from one box to another and not lock it to that single value?
Your explanation is very confusing.
To check other checkboxes use 'Mouse UP' of first checkbox you manually tick, and use something like this:
if(event.target.value != "Off"){
this.getField("check1").checkThisBox(0,true);
this.getField("check2").checkThisBox(0,true);}
Copy link to clipboard
Copied
Your explanation is very confusing.
To check other checkboxes use 'Mouse UP' of first checkbox you manually tick, and use something like this:
if(event.target.value != "Off"){
this.getField("check1").checkThisBox(0,true);
this.getField("check2").checkThisBox(0,true);}
Copy link to clipboard
Copied
Apologies on the confusion but that seems to have done the trick. Thank you very much.
Copy link to clipboard
Copied
The thing is to set up an action - which happens once and checks all the other boxes when you click on the master box. Then the user is free to uncheck any one. (You will want to think what you want to happen if the user unchecks the master box, and make it happen). See Nesa Nurani's post for full details of that approach.
What you don't want is any kind of calculate event to make this happen. You could do this, so that each box is always checked if the master is checked, but then you can't uncheck single boxes.