Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
R0b
Contributor II
Contributor II

When opening list box, close all others

Hi all,

I have a selection of list boxes that are opened / closed depending on the push of a button. 

I want to be able to make it so when I click the button to open another list box, all other list boxes close.

So essentially I only ever have one list box open at a time.

Any suggestions?

Thanks

Labels (6)
1 Solution

Accepted Solutions
MindaugasBacius
Partner - Specialist III
Partner - Specialist III

In my way of thinking the Button Actions might help you out:

Screenshot_2.png

By clicking the Button you should add the Action that disables other ListBoxes.

You should have to add for every variable the new Action.

 

View solution in original post

4 Replies
atoz1158
Creator II
Creator II

Hi

Try using a variable that is set by the button to the correct list box and then on each list box set the Show Conditional to the value for that list box as below.

ShowListBox.png

Regards

Adrian

R0b
Contributor II
Contributor II
Author

Hi Atoz,

I already have variable buttons to open and close each of my list boxes. I need to understand how I can have one variable / button that opens and closes for all of my list boxes though. 

MindaugasBacius
Partner - Specialist III
Partner - Specialist III

In my way of thinking the Button Actions might help you out:

Screenshot_2.png

By clicking the Button you should add the Action that disables other ListBoxes.

You should have to add for every variable the new Action.

 

gavinlaird
Contributor III
Contributor III

The method MindaugasBacius explained, where each button would change the variables for all other list boxes to "off", is the way I would do it.

An alternative:

Put all the list boxes in the same location, completely overlapping. Make all the list boxes' depth controlled by a different variable, starting at 1. Create another variable, "masterDepth", starting at 1. Instead of turning on the corresponding list box when a button is clicked, those buttons would instead add 1 to the masterDepth variable, then set that list box's depth variable to the new masterDepth. That way, you are just moving the "selected" list box to the front, and you don't have to deal with hiding all the rest.