Making components appear with a Click listener

Hello all!

We are making an app as a school project, and could use some help with the basics.
The task is to create a website app with a datasource, to which one can add and remove.

Down to business… The UI has an “add task” button, and the component containing the fields is currently always visible. We’d like to make it appear on click of “add task” button.

Thanks!

Hi,

when you create your UI, call setVisible(false) for the container of your fields. Then add a ClickListener to your button that calls setVisible(true) for the same container. On save you can again hide the field container.

-tepi

Thank you! All’s working. :slight_smile:

-Niki