# How to Save a Text Input by Displaying it on a Label?

**URL:** <https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672>\
**Category:** Questions about Thunkable X\
**Created:** [March 8, 2021, 11:32pm UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672 "2021-03-08T23:32:50Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![celebytes20212iy4](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@celebytes20212iy4](https://community.thunkable.com/u/celebytes20212iy4)\
**Post date:** [March 8, 2021, 11:32pm UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/1 "2021-03-08T23:32:50Z")

</div>

I want the user’s name to be displayed on a label. When the label is clicked, a text input and a save button should appear. After the user is done typing in their name and presses the save button, the name should appear on the label. Additionally, after the save button is clicked, I want the text input and save button to disappear. I have images of what I have done so far below. Also, I would like the name to save even if the user goes to a different screen in the app. Can somebody please look at the code and tell me what I need to fix?

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

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

---

<div class="post-metadata">

**Author:** ![roumak-coder](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@roumak-coder](https://community.thunkable.com/u/roumak-coder)\
**Post date:** [March 9, 2021, 2:47am UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/2 "2021-03-09T02:47:39Z")

</div>

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/c/4/c4894250389d55f801e29be98c4f5177c043259c.png)  
This code should help

---

<div class="post-metadata">

**Author:** ![celebytes20212iy4](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@celebytes20212iy4](https://community.thunkable.com/u/celebytes20212iy4)\
**Post date:** [March 9, 2021, 12:50pm UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/3 "2021-03-09T12:50:15Z")

</div>

Thanks! But, it did not save if I went to another screen in the app. Is there any way to save the name even if the app gets closed or the user moves to a different screen?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [March 9, 2021, 5:04pm UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/4 "2021-03-09T17:04:39Z")

</div>

The stored variable will save the content even after the app exits. This is correct but it will not automatically show in a label.

If you want the variable to display in the label even when you go to a different screen and come back to the screen that has the label connected to the stored variable then you need to:

In the screen **open** event connect the stored variable to the label so that whenever you come back to the screen the label will display whatever stored in the variable.

Hope this is clear.

---

<div class="post-metadata">

**Author:** ![celebytes20212iy4](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@celebytes20212iy4](https://community.thunkable.com/u/celebytes20212iy4)\
**Post date:** [March 10, 2021, 12:15am UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/5 "2021-03-10T00:15:53Z")

</div>

This is what I tried. It still isn’t working.

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

---

<div class="post-metadata">

**Author:** ![roumak-coder](https://avatars.discourse-cdn.com/v4/letter/r/b38774/32.png) [@roumak-coder](https://community.thunkable.com/u/roumak-coder)\
**Post date:** [March 10, 2021, 2:20am UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/6 "2021-03-10T02:20:06Z")

</div>

> [@muneer](#):
>
> The stored variable will save the content even after the app exits. This is correct but it will not automatically show in a label.

Yeah @muneer is right. The variable is getting stored but it is not getting displayed. It saves it even if you exit the app. To show it in a label when a screen opens use this block -

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/0/609104a1dcfe49d875e1acfe1ad94edd1628d1f7.png)

---

<div class="post-metadata">

**Author:** ![celebytes20212iy4](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@celebytes20212iy4](https://community.thunkable.com/u/celebytes20212iy4)\
**Post date:** [March 10, 2021, 2:52am UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/7 "2021-03-10T02:52:54Z")

</div>

Ohh okay. Thank you!

---

<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:28pm UTC](https://community.thunkable.com/t/how-to-save-a-text-input-by-displaying-it-on-a-label/1153672/8 "2024-11-08T13:28:57Z")

</div>


