Cannot get a radio button to be selected when a text field (Dropdown menu) has specific text selected.
I've been researching this for quite some time and it's getting frustrating that I can't figure it out myself! I have a PDF form. One field is a drop down menu. And then I have a group of radio buttons and a group of checkboxes. I have the group of radio buttons because only choice can be made ("Auth" or "Priv"). Group name is "14X: Type of Access". I have the checkboxes set up ("15X: U" and "15X: C") because more than one box can be checked. My code is allowing the checkbox to be selected but the radio button won't. The drop down menu has several choices and depending on the choice selected, either one or both of the checkboxes can be selected along with only one of the radio buttons ("Auth" or "Priv"). Here's a short version of what I have so far but only the "15X: U" checkbox is being checked and unchecked when I deselect "NIPR":
var X = this.getField("14X: Type of Access");
var A = this.getField(X.name+"Auth");
var P = this.getField(X.name+"Priv");
//NIPR IS SELECTED
if (event.value == "NIPR"){
this.getField("15X: U").checkThisBox (0, true)
}
else
{
this.getField("15X: U").checkThisBox (0, false)
}
//TYPE OF ACCESS REQUIRED VALIDATION FOR "AUTHORIZED" BOX
if (event.value == "NIPR"){
A.checkThisBox (0, true)
}
else
{
A.checkThisBox (0, false)
}
//NIPR ADMINISTRATOR IS SELECTED
if (event.value == "NIPR Administrator"){
this.getField("15X: U").checkThisBox (0, true)
}
else
{
this.getField("15X: U").checkThisBox (0, false)
}
//TYPE OF ACCESS REQUIRED VALIDATION FOR "PRIVILEGED" BOX
if (event.value == "NIPR Administrator"){
P.checkThisBox (0, true)
}
else
{
P.checkThisBox (0, false)
}
