Adding a new object with the click of a button

Hello! I am trying to create a habit tracker and I want that when i press the “add activity” button for a new instance of "activity to appear below, but it seems that it only works when i click the button for the first time. also, when i try to enter text input in the appearance, the background text doesn’t disappear. if someone could help me i would be very grateful :slight_smile:

The clone button clones the original component. So activity's Y is always going to be the Y position of the original/first “activity” button.

What you need to do is to set a variable to activity's Y when the screen opens and then each time the button is clicked, increase that variable by activity’s Height. Then use the variable for the cloned button’s y value.

thank you so much for your help!

1 Like