# Are cloned columns linked?

**URL:** <https://community.thunkable.com/t/are-cloned-columns-linked/1294931>\
**Category:** Questions about Thunkable X\
**Created:** [May 20, 2021, 4:25am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931 "2021-05-20T04:25:49Z")\
**Posts on this page:** 20\
**Page:** 1

<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:** [May 20, 2021, 4:25am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/1 "2021-05-20T04:25:49Z")

</div>

I need to clone columns in my app, and the cloning happens successfully. The column I am cloning contains 3 text inputs, a label, and a switch. But, I am unable to edit the text of any of the inputs in the cloned columns. For example, if I try to edit the second input in a cloned column, it will set the text of the 2nd input in the original column.  
This is my cloning code:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/d/c/dca27c07d4b7e1f4013d7dbdf05eb492dc6ca6a5.png)

Why is this happening?

---

<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:** [May 20, 2021, 4:41am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/2 "2021-05-20T04:41:50Z")

</div>

This is timely… I’m deep in cloning and referencing clones. It proves to be confusing even when I think I understand it.

Can you post a screenshot of the component tree (list)?

---

<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:** [May 20, 2021, 6:37am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/3 "2021-05-20T06:37:46Z")

</div>

Sure…  
This is what my column looks like:  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/4/3/436bd6389f95457559c83ab0e133d4acd9ffa08f.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/35dac8b719995d14b0b555f1684a8e57b5be762a.png)

I’ve managed to find a workaround, but it’s not really good.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e10898e16a827f4cafe093b82688a813769bcb7.png)  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/3/8358b19a2257676e9eed1a5ec5bcda95f4b7d180.png)

But the problem is that there are no styling options for this. What comes out is a column I can’t see and a couple of inputs squashed together. Looks terribly ugly.

---

<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:** [May 20, 2021, 6:59am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/4 "2021-05-20T06:59:51Z")

</div>

If your clone block is inside of a loop, make sure to add a Wait 0 Seconds block inside the loop.

See this:

> <https://github.com/thunkable/thunkable-issues/issues/915>
>
> In ThunkableX I'm using a count block to clone a row and change label text for e…ach clone incrementing a number at the end of the label.
> 
> In live testing and preview, the name of the labels is still the same of the parent If I don't insert a wait for 0 sec inside the loop.
> 
> To reproduce it:
> 1. Create a Button and a column, inside the column place a row and inside the row place a label with text Manutenzione\_1.
> 2. Run this code:
> !\[image\](https://user-images.githubusercontent.com/52273816/118927899-c04a3180-b942-11eb-87f0-90c27713e26c.png)
> 
> The result will be 5 labels in column, all with "Manutenzione\_1" as text
> 3. If you run this code, with a 0 seconds wait block, instead:
> !\[image\](https://user-images.githubusercontent.com/52273816/118928069-fe475580-b942-11eb-9d86-673eecd69dd0.png)
> 
> The result will be 5 labels in column with "Manutenzione\_1", "Manutenzione\_2","Manutenzione\_3" and so on as text, as expected.

---

<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:** [May 20, 2021, 7:05am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/5 "2021-05-20T07:05:18Z")

</div>

It’s not _inside_ a loop, but after one.

My full code:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/a/7abbb54538bdb9c35eb92baa4cb380b22db4f03b.png)  
and so on…

---

<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:** [May 20, 2021, 4:06pm UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/7 "2021-05-20T16:06:22Z")

</div>

I don’t know why your blocks aren’t working. 😕

I tried a simple example based on your first screenshot and neither method I employed is working:

[https://x.thunkable.com/copy/ff3a4f3ebab26adfa941eb98fecb8523](https://x.thunkable.com/copy/ff3a4f3ebab26adfa941eb98fecb8523)

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

And this crashes Thunkable or returns “undefined” which tells me that the list must be empty after cloning…

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/9/891773775d53ccc685fc0db6611d277774663295.png)

---

<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:** [May 20, 2021, 4:11pm UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/8 "2021-05-20T16:11:49Z")

</div>

But this **does** work:

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

Which tells me that even though the cloning finished in your example and in my first example, the list of components didn’t update quickly enough for our other blocks to work.

So here’s a looping version:

[https://x.thunkable.com/copy/37aa4145dfe4243a3f5a547ab3ab0cc7](https://x.thunkable.com/copy/37aa4145dfe4243a3f5a547ab3ab0cc7)

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

---

<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:** [May 20, 2021, 4:18pm UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/9 "2021-05-20T16:18:59Z")

</div>

@jane See my post just above this one. Any ideas why the list of components isn’t updating (my assumption) by the time the clone block’s “do” section runs?

---

<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:** [May 20, 2021, 4:39pm UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/10 "2021-05-20T16:39:58Z")

</div>

Thank you so much for this! Will definitely try it out in the morning. The response I am getting to my code is:

For example, I set the text of the first input in the first column to ‘a’. Then, I click the button and a new column gets created. When I try to change the text of the first input in _this_ column to ‘b’, the text of the input in the first column gets updated to ab.

Why is this happening? The columns are getting created successfully so I don’t think that it’s a problem with the code.

---

<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:** [May 20, 2021, 7:08pm UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/11 "2021-05-20T19:08:42Z")

</div>

Share a link or screenshot of your blocks.

---

<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:** [May 21, 2021, 4:10am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/12 "2021-05-21T04:10:33Z")

</div>

[https://x.thunkable.com/copy/5f5361475a58875b07befe4a6be26200](https://x.thunkable.com/copy/5f5361475a58875b07befe4a6be26200)

---

<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:** [May 21, 2021, 5:14am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/13 "2021-05-21T05:14:56Z")

</div>

That is really, really strange.

I simplified your project and it’s still doing it. If I type in a Book Name and then click Add Book, the next characters I type in a different text input field only show up in the original Book Name text input and only a single character at a time.

[https://x.thunkable.com/copy/2f92186c75b72266e359e6c007fbb8ed](https://x.thunkable.com/copy/2f92186c75b72266e359e6c007fbb8ed)

---

<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:** [May 21, 2021, 5:25am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/14 "2021-05-21T05:25:47Z")

</div>

I did a search and there are many topics about this particular bug.

See this, for example:

> [@Get text from clone text field](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/11):
>
> That seems odd - let me see if I can reproduce this…it sounds more like a caching/updating issue? UPDATE: Ok, this is where I’m at so far: [https://x.thunkable.com/copy/404af347cc6cfc021004179ff8d55ffb](https://x.thunkable.com/copy/404af347cc6cfc021004179ff8d55ffb) I’m able to clone the rows and get the component IDs from the cloned TextInputs, but for some reason I can’t edit the text in any of the cloned Text Inputs. Will follow up with the team about this for your today @funhall

---

<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:** [May 21, 2021, 5:53am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/15 "2021-05-21T05:53:51Z")

</div>

This is weird. @domhnallohanlon Did you ever figure out what the issue was with @funhall?

---

<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:** [May 21, 2021, 5:55am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/16 "2021-05-21T05:55:57Z")

</div>

Yeah, that’s exactly the behaviour I was talking about.

---

<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:** [May 24, 2021, 4:17am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/17 "2021-05-24T04:17:43Z")

</div>

I found a temporary solution:  
I made a custom DVL with all my inputs, and whenever the ‘Add’ button was clicked, I created a new row in my Data Source with blank text values. That created a new column but with blank text inputs. When any of my inputs’ value was changed, I set the value of that particular cell for the RowID to the input’s text.

---

<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:** [May 24, 2021, 4:42am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/18 "2021-05-24T04:42:44Z")

</div>

**Oops!** This doesn’t work. I want to update the value of the linked cell whenever Text\_Input Tasks changes, but this code isn’t working:

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e752ed2de044b6974cea973a201f42a7186085a4.png)  
Any ideas?

\*\*Edit: Even weirder- when I click the add button, the text inputs I have filled in before get wiped clean. When I try to edit the first text input in the second DVL column, the first text input in the _first_ DVL column changes to exactly what I’m typing.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/7/e7148417c263ac122f32fa08e4d6916245d52fbf.png)  
Same with the other inputs. I have absolutely no idea what to do.  
\*\*

---

<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:** [May 24, 2021, 6:08am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/19 "2021-05-24T06:08:54Z")

</div>

I think that’s still the same bug. Cloned text inputs don’t get updated correctly when you type in them.

---

<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:** [May 24, 2021, 6:26am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/20 "2021-05-24T06:26:18Z")

</div>

These inputs are in a DVL. Does that bug apply to them too?

---

<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:** [May 24, 2021, 7:35am UTC](https://community.thunkable.com/t/are-cloned-columns-linked/1294931/21 "2021-05-24T07:35:25Z")

</div>

I don’t know, sorry!

[Next page](https://community.thunkable.com/t/are-cloned-columns-linked/1294931.md?page=2)
