# Get text from clone text field

**URL:** <https://community.thunkable.com/t/get-text-from-clone-text-field/1042244>\
**Category:** Questions about Thunkable X\
**Created:** [January 5, 2021, 10:29pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244 "2021-01-05T22:29:36Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [January 5, 2021, 10:29pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/1 "2021-01-05T22:29:36Z")

</div>

I have this cloned text field, where I have wrote “Hjjvc” and I like to get the same text in the button. But it is always undefined. No matter what and how I do.

 ![skærm](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/8/58858e15e76bfacc407391fb749e232873ff5b1d.jpeg)  
This i think is the most simple blocks to to the trick. But no luck.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/b/3b1d3917c940c46d2832268a0ddab842f0b3ddd9.png)

Is there a thunkable bug or have I missed something.

---

<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:** [January 5, 2021, 10:56pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/2 "2021-01-05T22:56:33Z")

</div>

That should work. Does it make any difference if you set the value to a label’s text instead of a button? There’s another way to do this which requires finding the component within the list of all text input blocks but it’s more complicated than what you have in the screenshot so it’s probably not going to help in this case.

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [January 5, 2021, 10:58pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/3 "2021-01-05T22:58:43Z")

</div>

I have tried that. But no matter what I do it wont get the text…  
Very strange…  
I tryed something like this

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/f/7f0a1d06671b7aeff99029eb5513116d96ad17e6.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:** [January 5, 2021, 11:01pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/4 "2021-01-05T23:01:36Z")

</div>

Here’s a demo that I made that works:

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

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

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [January 5, 2021, 11:03pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/5 "2021-01-05T23:03:47Z")

</div>

that is also a button and not a text input??

---

<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:** [January 5, 2021, 11:06pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/6 "2021-01-05T23:06:08Z")

</div>

Right… I thought you wanted to take the text input string and change the name of a button to that string?

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [January 5, 2021, 11:17pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/7 "2021-01-05T23:17:50Z")

</div>

Sorry. yes you are right.  
It works from the simple clone block like the one you made.  
But when I try to get the text fro text input inside this block

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f6844440dc11f6a54c68987e64a799499ec360e1.png)  
It dont work. Can you see what is wrong with that block.  
Thanks in advance. 🙂

---

<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:** [January 6, 2021, 12:23am UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/8 "2021-01-06T00:23:16Z")

</div>

If it doesn’t work to set the button text to the cloned text input value in our screenshot, I’m not sure without seeing your actual project.

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [January 6, 2021, 10:05am UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/9 "2021-01-06T10:05:17Z")

</div>

Now I made some tests.  
I have this row named “CoverTemp\_row”.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/3/5300497b4a67a36a06b387f393ab77833d9a1ae6.png)  
I have the text field marked blue.  
If I use this block where I clone the whole row with th text field inside. It DONT work.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/e/0e2d2eeb87eab3d7c8c5217bcdef0c23ef925a1a.png)  
If I use this block where I only clone the Text\_Input1 it works fine.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/6/f6a6c5a077a262cd2a7ca43c31952be7807aafc4.png)  
How can I “tag” some of the Thunkable people???

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 6, 2021, 11:39am UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/11 "2021-01-06T11:39:07Z")

</div>

> [@funhall](#):
>
> If I use this block where I clone the whole row with th text field inside. It DONT work.

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.

 ![Screenshot 2021-01-06 at 11.55.30](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/a/ca6409649f74a78a14958c34da96f28bdc83730f.png)

Will follow up with the team about this for your today @funhall

---

<div class="post-metadata">

**Author:** ![funhall](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/funhall/32/92145_2.png) [@funhall](https://community.thunkable.com/u/funhall)\
**Post date:** [January 6, 2021, 12:11pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/12 "2021-01-06T12:11:33Z")

</div>

Thanks a lot. I dont have problems o get the component ID but I ant get the text from that text Component ID into a variable og button text as well. Hope that is also what you mean?  
Looking forward to hear from you…

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [January 6, 2021, 12:31pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/13 "2021-01-06T12:31:39Z")

</div>

If you take a look at the MWE I attached you’ll see that I haven’t even gotten that far yet. I can’t get the text from the cloned Text Inputs because I can’t edit the text there in the first place!

I’m coordinating with Jane about this at the moment - will keep you posted as I figure out more.

---

<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:31pm UTC](https://community.thunkable.com/t/get-text-from-clone-text-field/1042244/14 "2024-11-08T13:31:00Z")

</div>


