Does this JavaScript code work for a check box event? I see a lot of examples of if/else code for one action, but I needed a check box to change multiple objects. It does work, but I wasn't sure if it was the correct way to do it.
if (this.rawValue == "1") {
text1.presence = "visible";
text2.presence = "visible";
text3.presence = "visible";
} else {
text1.presence = "invisible";
text2.presence = "invisible";
text2.presence = "invisible";
}
If you had lots of objects to show/hide you could wrap these in a single subform and then just set the presence of the subforms instead of the individual objects.
Niall
Hope this helps,
Niall
Assure Dynamics