I have been trying to work this out and have tried many sripts to no avail. I have 3 subforms and 3 radio buttons, depending which radio button is selected should determine which subform is viewable. All the subforms are currently not visible, but I cannot get them to show. I have searched extensively both in this forum and google, but only found a solution for a yes / no, not 3 subforms / choices.
The most recent script I tried on click is:
TopmostSubform.Page1.page1subform.subject.Subject::click - (JavaScript, client)
if (this.rawValue == 1){
_RHW.presence == "visible";
} else {
_RHW.presence == "hidden";
}
if (this.rawValue == 2){
_DSP.presence == "visible";
} else {
_DSP.presence == "hidden";
}
if (this.rawValue == 3){
_WRP.presence == "visible";
} else {
_WRP.presence == "hidden";
}
Where 1, 2 and 3 are the bindings on the radio button choices.
Any help would be gratly appreciated.
Instead of
_RHW.presence == "visible";
try
_RHW.presence = "visible";