I have code that when a specific checkbox is checked, several other checkboxes become checked. I need ONLY those other checkboxes that get Checked to now be greyedout/locked checked. So the only way to uncheck them would be to deselect the original checkbox. The code is below..... var otherCheckBoxes = ["Local Travel", "Taxi", "Public Transit", "Province", "Region", "Private Motor Vehicle", "Government Fleet vehicle", "Air1", "Rail1", "Bus1", "Ferry1", "Taxi3", "Rental Motor Vehicle1", "Public Transit1", "Private Motor Vehicle2", "Government Fleet vehicle2", "Air", "Rail", "Bus", "Ferry", "Taxi2", "Rental Motor Vehicle", "Public Transit2", "Private Motor Vehicle1", "Government Fleet vehicle1"]; // etc. if (getField("Canada").value!="Off") { for (var i in otherCheckBoxes) getField(otherCheckBoxes).checkThisBox(0,true); } else if (getField("Canada").value!="On") { for (var i in otherCheckBoxes) getField(otherCheckBoxes).checkThisBox(0,false); }
... View more