so I made a state yes/no. When the user clicks on an icon the state is “yes” and when the user clicks on it again the state will switch to “no”. Closing the group focus by clicking outside it is working but the state is going to stay “yes”. How to make it switch to “no”. Do you have any ideas?
Make a conditional workflow. Set it to run everytime.
The condition is “when groupfocus is not visible and state is yes”
Action is set state to ‘no’
If you do not get the ability to put a condition that says ‘when groupfocus is not visible’ then create a shape. Label the shape “is visible”. Make the shape width 1 and height 1 and x and y values of 0.
Make the shape background to none, so that it is basically not visible on page.
Then set your triggers from the icon to hide or show the shape. Make a conditional workflow to hide or show the groupfocus based on the shape being visible or not.
Then you can for sure make a conditional statement that says ‘when shape is not visible and state is yes’
I was also going insane, and then found this. Thank you!
One caveat, your first workflow screenshot “when MaterialIcon D is clicked” should also have the condition “only when This MaterialIcon’s Clicked is 0”.
I needed to change that, and also extra workflow further down the thread to make everything work as expected.
Side note: This isn’t required to get it working, but I used a custom state named “Visibility state” with a “yes/no” value instead of the custom state named “Clicked” with “0/1”. Naming things intuitively helps me when building workflows.