Hi to all!
Let's say I created a subform with three radiobuttons :
apple
orange
lemon
Now I've got another subform (tomato) with one radiobutton that hides a numeric field.
What I want is that :
1. Only people who choose apple can also click on the tomato-subform-radiobutton
2. That people who do this get another (hidden) subform visible.
How can I fix this? Please help!
Thanks in advance!
Make the Tomato checkbox "hidden" or "invisible". Make the other hidden subform (Papaya?) "hidden".
Write script on the Apple checkbox to make the Tomato checkbox visisble. Write script on the Tomato checkbox to make the Papaya subform visible.
//on Apple checkbox using the change event to show/hide Tomato
if (Apple.rawValue == true)
{Tomato.presence = "visible"
}
else
{Tomato.presence = "hidden"
}
////On Tomato checkbox using the change event to show/hide Papaya subform
if (Tomato.rawValue == true)
{PapayaSubf.presence = "visible"
}
else
{PapayaSubf.presence = "hidden"
}
The else statement sets Tomato or PapayaSubf back to hidden if the check is removed.
Also you may need to put in the entire path to the field or subform, such as form1.P1.Header.Tomato.presence or form1.P1.Papaya.presence in the script.