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
var rb = xfa.resolveNode("xfa.form.ProductInUse").rawValue;
if (rb == "1")
//....
else
//.....
jjc_Mtl