Component visibility using conditional statements

how do you manipulate the visibility of a component by picking an option in the selector using the conditional statement in UI.

What is the right handler to use? and what is the right way of using the if else block?

in this image, the input component’s display settings is unselect.

and to make it visible i try to create a logic in the select component and i use the conditional statement.

but when i try to run it and pick an option in the selector, the input component which is the location in the preview appears in every option. it does not considering the condition in the if stataement

Hello, @DE_VERA_JENNY_L.

Your block with “Toggle component visibility” is outside your ‘if-do’ block. That’s why it always be visible. You need to paste int inside block ‘if’.

Regards, Nikita.

1 Like

Even with toggle block being in do section, the if statement lacks logic because currently it compares two strings.
Either it needs to use get value of select component and compare it to desired value, or if the value is being bound to some property then use it as a trigger for visibility.

2 Likes