# Dynamic control creation

**URL:** https://community.thunkable.com/t/dynamic-control-creation/1349209
**Category:** Questions about Thunkable X
**Created:** [June 17, 2021, 3:04am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209 "2021-06-17T03:04:25Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![sumeshoouh](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sumeshoouh](https://community.thunkable.com/u/sumeshoouh)
#### Post date: [June 17, 2021, 3:04am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/1 "2021-06-17T03:04:25Z")

</div>

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

---

<div class="post-metadata">

### Author: ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)
#### Post date: [June 17, 2021, 4:05am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/2 "2021-06-17T04:05:13Z")

</div>

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).

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 17, 2021, 4:19am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/3 "2021-06-17T04:19:34Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/e/2eb5508ae0a72740f692d0e1ffac0116e0329481.png)

Try this.

---

<div class="post-metadata">

### Author: ![sumeshoouh](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sumeshoouh](https://community.thunkable.com/u/sumeshoouh)
#### Post date: [June 17, 2021, 7:32am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/4 "2021-06-17T07:32:36Z")

</div>

thank you tatiang for the help

---

<div class="post-metadata">

### Author: ![sumeshoouh](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sumeshoouh](https://community.thunkable.com/u/sumeshoouh)
#### Post date: [June 17, 2021, 7:34am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/5 "2021-06-17T07:34:03Z")

</div>

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

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 17, 2021, 7:36am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/6 "2021-06-17T07:36:54Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sumeshoouh](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sumeshoouh](https://community.thunkable.com/u/sumeshoouh)
#### Post date: [June 17, 2021, 7:44am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/9 "2021-06-17T07:44:37Z")

</div>

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](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/b/cb1cf793fe82edb6c52a8de6d0d210d581ad7462.png)

---

<div class="post-metadata">

### Author: ![codeswept](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/codeswept/32/87755_2.png) [@codeswept](https://community.thunkable.com/u/codeswept)
#### Post date: [June 17, 2021, 7:45am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/10 "2021-06-17T07:45:13Z")

</div>

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

---

<div class="post-metadata">

### Author: ![sumeshoouh](https://avatars.discourse-cdn.com/v4/letter/s/13edae/32.png) [@sumeshoouh](https://community.thunkable.com/u/sumeshoouh)
#### Post date: [June 17, 2021, 7:45am UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/11 "2021-06-17T07:45:50Z")

</div>

ahh…you are right…thanks a lot

---

<div class="post-metadata">

### Author: ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)
#### Post date: [November 8, 2024, 1:20pm UTC](https://community.thunkable.com/t/dynamic-control-creation/1349209/12 "2024-11-08T13:20:14Z")

</div>


