Upvote 1

Hide/Show on button click (depending on status of visibility)?

Answered Victor Conesa 10 years ago

Is it possible to have a property as a condition?


I want a button that changes when it is clicked.


So when the button is grey, it should change to white when clicked.


And when it is white it should change to gray when clicked.


Same with visiblity of elements.


When a button is clicked once, an element should be made visible.


When it is clicke a second time it should hide.


Can you point me in the right direction?

Best Answer
photo

To create a condition based on an element's visibility, drag the element into the open space in the Conditional Expression builder and use the dropdown to select 'visible'. Then, drag a 'Not' function in front of it.

2ede14ff679682b526ec22c6ad245fc8

Replies (2)
photo
1

Ok...


i think i got the answer myself.


When ever i created the interactions i created 2 seperate tap events and not one event with an else condition. That seemed to block both interactions.


Now it seems to work.

photo
1

To create a condition based on an element's visibility, drag the element into the open space in the Conditional Expression builder and use the dropdown to select 'visible'. Then, drag a 'Not' function in front of it.

2ede14ff679682b526ec22c6ad245fc8

Leave a Comment
 
Attach a file