Reset variable when user click anywhere on page except on some elements

I have elements on page on which when i click they set their own boolean variable.

Now i want when i click on any other part of the page this variables to be reseted.

Dont say to put invisible container over and make workflow. No matter that it work, i cant do this.

Thanks in advance

you could try put a workflow on whatever your background element is changing the bool to false and then have stop click propagation on the elements you don’t want it to change.

It cant be done like this. I will prepare some pictures to show you

  1. As you can see here in logs, when i click on user icon(top righ corner) workflow for user icon change variable to True. But because i have workflow on Main Container to reset same variable it reset it immediately to false.

Reset1

  1. Here you can see that z-axis for user icon is 51(so its above) and z-axis for Main Container is 50(so its bellow) but still it react on user icon like i have click on container.
    Reset2

I want when i click on User Icon, variable to be set to True(i have workflow for this) but when i click on any other place on page this variable to be Reseted.

it sure can be done haha what you have missed is the stop click propagation action the docs explain it well.

Thank you man this was helpfull :slight_smile: But now have other problem. When i set variable to True and its open container with elements in it, after i click on some element it close it(reset variable). Look bottom for example. When i click on input element to write something its close it.

Reset3

Anybody that can help?