Hello All ,
I have got an Acrobat form where there is a radio button . Say 'A' and 'B' . Below Button A there are a set of radio buttons corresponding to set A and the same case is also with set B. The user has to select either A or B first . If he selects A then he has to select one from the radio buttons lying below A . Same case with B. I want to lock the radio button sets of B If the user selects A and vice versa .
The hierarchy goes like this .
A B
1. 1.
2. 2.
3. 3.
So if the user selects A first then he should not be able to select the buttons under B and same case with if he selects B first .
I tried the following script .
var a = this.getField ('A') .value ;
if (a == "value of the button A")
{
this.getField ("field name of the buttons 1,2,3 under set B").readOnly = true ;
}
But this script is of no help . Please suggest a better way.
Thanks.
Bibhu.
Secondly, where did you place this script? Also, I would change the if statement to something like this:
if (a != null && a != "")That way it doesn't matter which value is selected.
- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com