Hello all,
In Acrobat form javascript,
I created 2 ComboBox(CB1 and CB2),
CB1 to involve 3 RadioBox(RB1a, RB1b and RB1c),
CB2 to involve 3 RadioBox(RB2a, RB2b and RB2c).
If you press "ON" CB1, the RadioBox(RB1a, RB1b and RB1c) can be choose. And the CB2, and RadioBox(RB2a, RB2b and RB2c) is Readonly and "OFF".
Conversely,
If you press "ON" CB2, the RadioBox(RB2a, RB2b and RB2c) can be choose. And the CB1, and RadioBox(RB1a, RB1b and RB1c) is Readonly and "OFF".
If you do not press "ON" the CB1 and CB2, then RadioBox(RB1a, RB1b, RB1c, RB2a, RB2b, RB2c) is Readonly and "OFF".
How can do that?
Pls help and thanks!
However, you can use a variation on this code as CB1's MouseUp action:
if (this.getField("CB1").value=="Yes") {
this.getField("RB1a").readonly = false;
this.getField("RB1b").readonly = false;
this.getField("RB1c").readonly = false;
} else {
this.getField("RB1a").value = "";
this.getField("RB1b").value = "";
this.getField("RB1c").value = "";
this.getField("RB1a").readonly = true;
this.getField("RB1b").readonly = true;
this.getField("RB1c").readonly = true;
}
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com