Hide component until submit is clicked

Hi All!

Wondering if its possible to hide a component until a button is clicked.

e.g. container1 is hidden until a user simply clicks button1

Thank you!

There are many ways to achieve what you are trying to do.

Here is a naive example using the "Set temporary state" action within a click event handler of a button.

  1. Create a temp state var isHidden and set it to true

temp_state

  1. Add a container to the canvas and set the hidden property to the value of isHidden

container_hide

  1. Add a button to the canvas and configure a click event handler to set the temp state isHidden to false

button_click

2 Likes

Thank you!!