# (Solved) Cloned element does not also clone the blocks of the original for all clones but just for the last one

**URL:** https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592
**Category:** Questions about Thunkable X
**Created:** [August 10, 2019, 3:17pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592 "2019-08-10T15:17:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)
#### Post date: [August 10, 2019, 3:17pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/1 "2019-08-10T15:17:48Z")

</div>

Hey all

I would like to discuss this with you before opening a bug report as I am not sure whether what I am seeing can be considered as expected behaviour or not.

**(updated description)**  
So as of recently we can clone elements such as buttons using the “Any Component \> Clone” functionality which is really useful however, it appears that this only clones the design of an element but not any blocks associated with it. For example, let’s say that you have a button with a telephone number as its “Text” property which when clicked, launches the phone’s dialler and pre-populates the number in the dialler’s number field. So far, so good.

Now, if you clone that button 10 times, the first 9 clones loose the described functionality as the block associated to the original button does not get cloned for them but it **does** for the **last** clone. For the first 9 clones, only the original’s design gets cloned.

@Mark can you help us understand if this is expected behaviour?

Thanks  
K

---

<div class="post-metadata">

### Author: ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)
#### Post date: [August 10, 2019, 3:51pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/2 "2019-08-10T15:51:57Z")

</div>

Hey there,

* * *

# Can this help u :

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

---

<div class="post-metadata">

### Author: ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)
#### Post date: [August 10, 2019, 4:07pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/3 "2019-08-10T16:07:01Z")

</div>

Hey kartik14.

Is this for Thunkable X or Classic? Not sure I can find the “do something with component” block on X. Also, I just realised that that I described does work but only for the last clone of the original. So let’s say you clone a button 10 times, only the 10th clone will also get the the blocks of the original working.

Thanks  
k

---

<div class="post-metadata">

### Author: ![Yukold](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/yukold/32/35122_2.png) [@Yukold](https://community.thunkable.com/u/Yukold)
#### Post date: [August 10, 2019, 4:11pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/4 "2019-08-10T16:11:08Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/a/4/a48ea220fdeb903961b14dbb12e0b71b93b90dad.png)

This is what you need to do =)  
Rename the “x” to “component” =)

You need to put actions on clones for them to have a function, but generally this funtion is pretty much the same in all of them.

---

<div class="post-metadata">

### Author: ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)
#### Post date: [August 10, 2019, 4:17pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/5 "2019-08-10T16:17:33Z")

</div>

Hey Yukold

I can’t use the “Any button” as shown on kartik14’s response; let me explain why. I am cloning a column which has two buttons in it. One button launches Google Maps and the other launches the dialler so two different actions. If I understand correctly, the function points to all buttons but executes one action so that would not be suitable for what I am doing.

Also, based on my update, the blocks of the original actually **do** get cloned as well but only work for the last clone so for example if I clone a button 10 times, the blocks of the original will work on the last but not the 9 first so this looks like a bug to me.

Thanks  
K

---

<div class="post-metadata">

### Author: ![Yukold](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/yukold/32/35122_2.png) [@Yukold](https://community.thunkable.com/u/Yukold)
#### Post date: [August 10, 2019, 5:22pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/6 "2019-08-10T17:22:16Z")

</div>

I already went through this, you must put the invisible cloned object (set false) there in the design and in the blocks you put visible, as in the example below:

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

about the button, do the example below 😉

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/7/474e148fbaff4ca317851a1da267fe2bab0a8147.png)

If more than one button:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/5/454374645f6276d3e355404617d58f017ab08116.png)

remembering that these are just examples to help you, you will have to make your way to getting the best possible for what you wish, good luck 😉

Any questions just ask! we will be happy to help you

---

<div class="post-metadata">

### Author: ![Mark](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mark/32/18133_2.png) [@Mark](https://community.thunkable.com/u/Mark)
#### Post date: [August 10, 2019, 5:54pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/7 "2019-08-10T17:54:25Z")

</div>

@Deluxe, The explanations and solutions that @Yukold and @kartik14 are proposing are the right sort of ideas for how to do what you want.

There shouldn’t be any new blocks created when you clone a component. If you are seeing such behavior, please post a copy/share link to simple example project where that occurs.

-Mark

---

<div class="post-metadata">

### Author: ![Deluxe](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/deluxe/32/30016_2.png) [@Deluxe](https://community.thunkable.com/u/Deluxe)
#### Post date: [August 11, 2019, 7:08am UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/8 "2019-08-11T07:08:01Z")

</div>

So I ended up implementing this a bit differently and it works like a charm! Thank you all!!

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

---

<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, 12:11pm UTC](https://community.thunkable.com/t/solved-cloned-element-does-not-also-clone-the-blocks-of-the-original-for-all-clones-but-just-for-the-last-one/176592/9 "2024-11-08T12:11:56Z")

</div>


