Dynamic control creation

hi
how can i create controls dynamically in thunkable?
my app is supposed to get a number at runtime, (for eg: 3), and then create 3 buttons
dynamically…is there any way to do it in thunkable?
thanks

1 Like

There are two ways to do this:

  1. In the newer “beta” drag-and-drop interface, hide/show buttons based on conditions.

  2. In the older snap-to-place interface, use the Create or Clone blocks to add components to a container (row, column or screen).

3 Likes

Try this.

2 Likes

thank you tatiang for the help

thanks a lot, @codeswept codeswpt for the help and code block…much appreciated

1 Like

Glad it helped! You can mark my post as a solution if it helped you.

1 Like

hi, @codeswept , @tatiang , from where do i get this __SET BUTTON COMPONENTS __ block?.. i dont seem to have such a block in my designer…

image

1 Like

You can get this block from the ‘Any Component’ section.

2 Likes

ahh…you are right…thanks a lot

1 Like