# How to maintain the state of the button at the time the application is reopened

**URL:** <https://community.thunkable.com/t/how-to-maintain-the-state-of-the-button-at-the-time-the-application-is-reopened/2254504>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, button\
**Created:** [February 2, 2023, 9:49am UTC](https://community.thunkable.com/t/how-to-maintain-the-state-of-the-button-at-the-time-the-application-is-reopened/2254504 "2023-02-02T09:49:25Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![him\_isme](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@him\_isme](https://community.thunkable.com/u/him_isme)\
**Post date:** [February 2, 2023, 9:49am UTC](https://community.thunkable.com/t/how-to-maintain-the-state-of-the-button-at-the-time-the-application-is-reopened/2254504/1 "2023-02-02T09:49:25Z")

</div>

Hi everyone,  
hope those who read this message always be in good health.

I have a quiz app that has 3 question level buttons. I want to set that the first time the screen is opened, the level 1 button is visible, but the other 2 buttons are hidden.

The easy plan is that the 2nd button will open when you have selected the 1st button and the 3rd button will open if you have selected the 2nd button.

If all the buttons are open, I want to maintain that state, so that if the application will be opened again the next time all the buttons remain open.

is there such a special program block, or is there an array of blocks that could create just that.

It is a joy to get the attention from Thunkers !

---

<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:** [February 2, 2023, 3:55pm UTC](https://community.thunkable.com/t/how-to-maintain-the-state-of-the-button-at-the-time-the-application-is-reopened/2254504/2 "2023-02-02T15:55:00Z")

</div>

To make something keep its state (or value), use a _stored_ variable. Those variables keep their value even after you quit the app. It’s important when using a stored variable to check if it’s null when the screen opens and if so, set it to a starting value.

---

<div class="post-metadata">

**Author:** ![him\_isme](https://avatars.discourse-cdn.com/v4/letter/h/45deac/32.png) [@him\_isme](https://community.thunkable.com/u/him_isme)\
**Post date:** [February 4, 2023, 2:28am UTC](https://community.thunkable.com/t/how-to-maintain-the-state-of-the-button-at-the-time-the-application-is-reopened/2254504/3 "2023-02-04T02:28:18Z")

</div>

Well @tatiang i’ll will try this. Thanks…

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [May 5, 2023, 2:28am UTC](https://community.thunkable.com/t/how-to-maintain-the-state-of-the-button-at-the-time-the-application-is-reopened/2254504/4 "2023-05-05T02:28:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
