These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Radio Button

dfetz88
Registered: Jul 29 2008
Posts: 2

I know that it must be very easy but I cannot seem to get it to work correctly.
I want text field to become visible only when the no radio button is selected and invisible otherwise. Currently it will be visible when i click no but when i click yes it stays visible. here is what i have

if(ProductInUse.rawValue == "1")//1 refers to yes
{
ReturementDate.presence = "invisible";
}
if(ProductInUse.rawValue =="2")//2 refers to no
{
RetirementDate.presence = "visible";
}

I dont no if this helps but the radio buttons are called yes and no

jjc_Mtl
Registered: Jul 28 2008
Posts: 3
you should resolve the node:
var rb = xfa.resolveNode("xfa.form.ProductInUse").rawValue;
if (rb == "1")
//....
else
//.....

jjc_Mtl