title: Adobe Acrobat uncheck checkbox javascript function not working
body: <p>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.</p>
  
  <pre><code>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";
  }
  </code></pre>
  
  <p>I've tried 2 <code>if</code> statements, and an <code>if/else</code> as well as the <code>.value = "Off"</code> and the <code>checkThisBox(0, false)</code> methods. When I run a single line using either method from the console it works.</p>