I have a form designed in Adobe Acobat Professional 8.1.0. In it are a few check boxes. If there are say 3 check boxes CheckBox1, Checkbox2 and CheckBox3, I would like the following conditions to work:
all check boxes are unselected,
checkbox1 is selected,
checkbox2 is selected,
if both checkox 1 and checkbox2 are selected then only checkbox3 to be selected,
if checkbox3 selected then checkbox 1 and checkbox2 to be unselected.
I tried to place this javascript code in Checkbox3 Mouseup event
var cb1 = this.getField("CheckBox1");
var cb2 = this.getField("CheckBox2");
if (this.rawValue == 1) {
cb1.rawValue = 0;
cb2.rawValue = 0;
}
I am unable to get it to work.
What am I doing wrong?