# How to hide a alert

**URL:** https://community.thunkable.com/t/how-to-hide-a-alert/1317952
**Category:** Questions about Thunkable X
**Created:** [May 31, 2021, 7:53am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952 "2021-05-31T07:53:10Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)
#### Post date: [May 31, 2021, 7:53am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/1 "2021-05-31T07:53:10Z")

</div>

Hi, I want to Hide a alert if the varibale= true for my app. Is it possible?

Thanks  
@ninja_x

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [May 31, 2021, 8:10am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/2 "2021-05-31T08:10:07Z")

</div>

Its not possible to Hide the alert using code.  
Omly When a user pressed a button in the dialog it Will Hide.

---

<div class="post-metadata">

### Author: ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)
#### Post date: [May 31, 2021, 10:09am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/3 "2021-05-31T10:09:25Z")

</div>

Hi there,

Luke is correct, you can’t dismiss an Alert with blocks once it has been displayed.

However, you can choose whether to show an Alert or not based on the value of variables.

For example, you could say  
` if variable = false`  
` show Alert`

With these blocks, if your variable = true, the Alert will not be shown.

Thanks,  
Jane

---

<div class="post-metadata">

### Author: ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)
#### Post date: [May 31, 2021, 11:47am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/4 "2021-05-31T11:47:14Z")

</div>

Thanks @jane

---

<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 31, 2021, 5:18pm UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/5 "2021-05-31T17:18:05Z")

</div>

I’m making a pop-up menu demo that could be used for custom alerts as well.

Why do you need an alert to hide when a variable value changes?

---

<div class="post-metadata">

### Author: ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)
#### Post date: [June 1, 2021, 5:29am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/6 "2021-06-01T05:29:15Z")

</div>

Cuz The alert should not be seen if the user register in my app. @tatiang

---

<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: [June 1, 2021, 5:39am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/7 "2021-06-01T05:39:40Z")

</div>

That seems easy enough to do with the built-in Alert component. Just use an If/else block to check for registration and then display the alert if the user hasn’t registered.

That’s what @jane suggested above.

---

<div class="post-metadata">

### Author: ![ninja\_x](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ninja_x/32/125825_2.png) [@ninja\_x](https://community.thunkable.com/u/ninja_x)
#### Post date: [June 1, 2021, 5:45am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/8 "2021-06-01T05:45:53Z")

</div>

that’s what I did btw can plz check my other new topic… plzz @tatiang

---

<div class="post-metadata">

### Author: ![sketch](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sketch/32/109058_2.png) [@sketch](https://community.thunkable.com/u/sketch)
#### Post date: [June 1, 2021, 5:50am UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/9 "2021-06-01T05:50:03Z")

</div>

I did

---

<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:22pm UTC](https://community.thunkable.com/t/how-to-hide-a-alert/1317952/10 "2024-11-08T13:22:10Z")

</div>


