# Change Button1 text on Screen1 when Button2 clicked on Screen2

**URL:** https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811
**Category:** Questions about Thunkable X
**Created:** [May 5, 2020, 7:58am UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811 "2020-05-05T07:58:29Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![antje.smilesyft](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/antje.smilesyft/32/67780_2.png) [@antje.smilesyft](https://community.thunkable.com/u/antje.smilesyft)
#### Post date: [May 5, 2020, 7:58am UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/1 "2020-05-05T07:58:29Z")

</div>

Hi everyone 🙂  
I am trying to figure this out and would greatly appreciate to be pointed in the right direction.  
I would like to change the text on a button on one screen after another button on a different screen has been clicked.

 ![IMG_20200503_122026_147](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/f/ef1e8d3ec40723df2640e84ee8c8a5fece6fab9e.jpeg)  
 ![IMG_20200503_121945_512](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/3/13641724ad4e85f7752ef5ec81fa0ac788b914c0.jpeg)

I am currently going over different tutorials but can’t really wrap my mind around it so far.  
I am planning to publish my app as a web app.

My idea is to use a variable in order to achieve that. However, I currently don’t fully understand how to store the value. I have a feeling storing it in a database would be the best option, but I am really not sure.

If someone knows about a tutorial that will help me with that, please let me know. I don’t expect to get my full solution served here 🙂 I am just currently lost on what to spend my research and learning time on.

Thanks a million,  
Antje

---

<div class="post-metadata">

### Author: ![samuelbaudrillartwuc](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/samuelbaudrillartwuc/32/61683_2.png) [@samuelbaudrillartwuc](https://community.thunkable.com/u/samuelbaudrillartwuc)
#### Post date: [May 5, 2020, 11:17am UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/2 "2020-05-05T11:17:09Z")

</div>

Hi [antje.smilesyft](http://community.thunkable.com/u/antje.smilesyft) !

Thanks for asking this question ! I admit that some issues might be difficult to solve by yourself when it comes with variables ^^

I don’t know if it’s the easiest way to do that but that’s my advice :

- create a variable (call it as you wish, for exemple button1\_name)
- give it a start value (it might be “null” or “text” (whatever you want))
- add in Screen 2 a block called “when button 2 is clicked”
- create a block in it that call app button1\_name and set a new text with a text block

Hope it will solve your problem.  
If you have trouble to that, fell free to let me know ! In this case I’ll try to get into more detail ^^

Have fun nocoding 🙂  
Sam

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [May 5, 2020, 11:24am UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/3 "2020-05-05T11:24:28Z")

</div>

Create a stored variable called storedText

When the button on screen 1 is clicked, set storedText to the correct text

When screen 2 loads add a if/then block

Set button text to variable storedText

---

<div class="post-metadata">

### Author: ![antje.smilesyft](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/antje.smilesyft/32/67780_2.png) [@antje.smilesyft](https://community.thunkable.com/u/antje.smilesyft)
#### Post date: [May 5, 2020, 2:15pm UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/5 "2020-05-05T14:15:01Z")

</div>

Thanks, Jared. That was actually my initial thought when reading the documentation 🙂 I understood that a stored variable is stored on the device. I really don’t have much knowledge about web-apps and am wondering if there might ever be the case where the value can’t be fetched from a previous session. So my specific question for this case is: Do stored variables stay constant over the course of all sessions for web apps, unless I change it?

Thank you

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [May 5, 2020, 2:16pm UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/6 "2020-05-05T14:16:01Z")

</div>

ahaha! I believe they might. but if a user clears their cookies, history, etc that would certainly be lost. My recommendation is to create a login in screen, and to use cloud variables.

I will create an example shortly for webapp purposes. It will display only what the user tells it to!

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [May 5, 2020, 3:07pm UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/7 "2020-05-05T15:07:57Z")

</div>

Here you go

[\_remixLink](https://x.thunkable.com/copy/4cf49082661680b86ae7277d6d0ad970)

[See it live](https://thunk.app/w/cgZ4Itwkz)

---

<div class="post-metadata">

### Author: ![antje.smilesyft](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/antje.smilesyft/32/67780_2.png) [@antje.smilesyft](https://community.thunkable.com/u/antje.smilesyft)
#### Post date: [May 7, 2020, 12:29pm UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/8 "2020-05-07T12:29:18Z")

</div>

Thank you. A login screen is something I still need to do anyways actually.  
Your “see it live” link gives me “Oops! The app you are looking for is currently under construction and not available.”  
Is there a way to get past the sign-in screen for the live test? If not, it’s ok. I can still look into the screens and blocks you created and see the logic there.

Sorry if I might be asking lots of noob questions 😅  
Thanks again

---

<div class="post-metadata">

### Author: ![jared](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jared/32/138473_2.png) [@jared](https://community.thunkable.com/u/jared)
#### Post date: [May 7, 2020, 1:01pm UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/9 "2020-05-07T13:01:30Z")

</div>

Sorry! I deleted the app from my lineup, i forgot that also deletes the published web app. I wont be adding it back to my app lineup today, but will likely add it to my sandbox project. I encourage you to set this up yourself to understand the process (or practice) setting up firebase authentication with a template (as provided).

if you get caught up on the blocks, message back though and i’ll be happy to assist!

---

<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, 11:29am UTC](https://community.thunkable.com/t/change-button1-text-on-screen1-when-button2-clicked-on-screen2/564811/10 "2024-11-08T11:29:23Z")

</div>


