- Mark as New
- Follow
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report
I have 6 buttons controlling 6 identically sized text boxes contained in a single subform.
If the user clicks on button 1, textbox 1 is unhidden. If button 2 is clicked, textbox 2 is unhidden and textbox 1 is hidden etc etc.
I'm presently using an "if else" statement to hide and unhide textboxes like this:
if (button.rawValue == "1")
{
TextField1.presence = "visible";
}
else
{
TextField1.presence = "hidden";
TextField2.presence = "hidden";
TextField3.presence = "hidden";
TextField4.presence = "hidden";
TextField5.presence = "hidden";
TextField6.presence = "hidden";
}
What I'm wondering is if there is some way of saying
if (button.rawValue == "1"), all other items in this subform are hidden
Is that possible with JS?
Graham
Solved! Go to Solution.
Views
Replies
Total Likes