How to get incrementing slots?

Hi,

I’d like my program to be able to allow the user to create a list of names (in editable text boxes) using a scroll box. But instead of having a set number of blank slots on a widget for the user to fill, I’d like the user to be able to add the slots whenever he/she wants to add an extra name on the list. I was thinking of having an “ADD” button at the bottom of the list within the widget so that the user can click on it whenever he/she want to add a name to the list. How would I go about doing this in the widget designer/event graph?

Any help would be greatly appreciated.

Create a separate widget for Name, where you put your EditableText. In your Main Widget, create a Button and a VerticalBox or HorizontalBox, make it Variable. In your Graph, Create Widget (Name) and add it as Child to your panel when the button is clicked.

Works like a charm!
Thank you.

You’re welcome