Forum Discussion
Showing a layer when multiple items selected
- 8 months ago
Thanks for the feedback. I was working on a "clear all" button to clear layers, but now I also wonder if I set a trigger for my objects in each column to reset the state of other objects in that column. That way it happens as they move through and don't have to click a separate button.
If you put the buttons on each side into separate button sets, the user will only be able to select one at a time. Clicking a button will automatically deselect others in the set.
Here's another option:
Set the Slide Layer Properties so the user can't interact with the base.
Put a button on the layer (e.g., "Make a new selection"). Have triggers on that button that reset all the base buttons to Normal, plus a trigger to close the layer.
- Josh4028 months agoCommunity Member
Thanks for the feedback. I was working on a "clear all" button to clear layers, but now I also wonder if I set a trigger for my objects in each column to reset the state of other objects in that column. That way it happens as they move through and don't have to click a separate button.
- Josh4028 months agoCommunity Member
So, adding a trigger to each object did work.
One item that helped make this work is, per customer request, I had already set up the "normal" state to by 70% transparent and then "selected" state to by 0% transparent. That ended up being key to giving the trigger something to do. Thanks to Judy for helping me think differently!
- Nedim8 months agoCommunity Member
Hi Josh,
I think you may have mistakenly marked your reply as the solution. If Judy helped you make this work, her reply should be marked as the solution instead.
To correct it, click the X on the "Marked As Solution" button on your post. That will deselect that reply as the solution. Then go to Judy's reply, and click to mark that as the solution.Let's give her the credit she deserves.
- JudyNollet8 months agoSuper Hero
Let me clarify my earlier reply. As I understand it, you have two columns of buttons. The user is supposed to select one—and only one—item from each column. Based on which buttons are selected, the corresponding layer shows.
If that's correct, you do not need any triggers to reset the buttons within a column. Instead, put the buttons in column 1 in a button set. Then put the buttons in column 2 in a different button set.
When buttons are in a button set, clicking one button automatically deselects the other buttons in the set. (For example, this is how the responses in a Multiple Choice question work.)
BTW, a trigger that changes the state of an object will run even if those states look exactly alike. Of course, if the states look alike, you won't see a visual verification that the change happened. But the program does make the change and will recognize which state the object is in.
For more info:
- Josh4028 months agoCommunity Member
Thanks for this info as well. Good to know there are multiple ways to accomplish this task!
Related Content
- 3 months ago
- 2 months ago
- 3 months ago