I'm trying to have specific checkboxes checked or unchecked dependent on the checkbox value. When I check the box the other boxes get checked, but if I uncheck the box, the other boxes don't get unchecked. I've tried the Mouse Exit and Mouse Up triggers with the same result.
if (this.getField("Check Box2").value == "On")
{
this.getField("Check if this is an").value = "On";
this.getField("Check 1").value = "On";
this.getField("Check Box230").value = "Yes";
}
else //if (this.getField("Check Box2").value == "Off")
{
//this.getField("Check if this is an").value = "Off";
this.getField("Check if this is an").checkThisBox(0, false)
this.getField("Check 1").value = "Off";
this.getField("Check Box230").value = "Off";
}
I've tried 2 if
statements, and an if/else
as well as the .value = "Off"
and the checkThisBox(0, false)
methods. When I run a single line using either method from the console it works.
Aucun commentaire:
Enregistrer un commentaire