Avatar

Level 3

I have three radio buttons in a group, controlling the visibility of three subforms.

I am using the below code to do this..

if

(FixedArrangement.rawValue == 1){

Sub1.presence

= "visible";

}

else {

Sub1.presence

= "invisible";

}

All subforms are invisible by default, and when a user checks a radio button the subform becomes visible.

How do I make it, so that if a user checks the next radio button in the group, the first subform that was displayed turns invisible, and it displays the second subform?

I hope I have made myself clear?

At present the user clicks the first radio button, the first subform is displayed, but if he then clicks the second radio button in the list, the second subform is displayed, but the first subform is still also visible.

Thanks