# Alert automatically closes

**URL:** <https://community.thunkable.com/t/alert-automatically-closes/106381>\
**Category:** Questions about Thunkable X\
**Created:** [June 14, 2019, 3:31pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381 "2019-06-14T15:31:08Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![jw01563daqgz](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jw01563daqgz](https://community.thunkable.com/u/jw01563daqgz)\
**Post date:** [June 14, 2019, 3:31pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/1 "2019-06-14T15:31:08Z")

</div>

Is there a way to have the alert automatically close after displaying a message ? Essentially i want the alert to pop up for about three seconds then automatically go away.

---

<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:** [June 14, 2019, 3:35pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/2 "2019-06-14T15:35:56Z")

</div>

Hi @jw01563daqgz,

Unfortunately this is not possible with the alert component.

Alerts are designed to be user-dismissed, what you’re describing sounds more like a “toast” in Android, although it would be useful to have an `Alert.dismiss()` function.

As a work-around, perhaps you could have a button or label appear and use the timer then to dismiss it?

Hope that help!

---

<div class="post-metadata">

**Author:** ![jw01563daqgz](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jw01563daqgz](https://community.thunkable.com/u/jw01563daqgz)\
**Post date:** [June 14, 2019, 3:39pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/3 "2019-06-14T15:39:33Z")

</div>

First, your response team is insane, yall are so fast to respond its awesome. Anyway, I had thought about going that route, but just wanted to make sure I wasn’t missing anything, plus the Alert icon looks so clean.

---

<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:** [June 14, 2019, 3:43pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/4 "2019-06-14T15:43:06Z")

</div>

Thanks!

And thanks for the `dismiss()` suggestion too.

The entire Thunkable Community are super-helpful, so if you have any other question please just let us know. 😄

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [June 14, 2019, 3:57pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/5 "2019-06-14T15:57:37Z")

</div>

How about having a “pop-up” component, that is an arrangement not unlike a row or column (or even a whole screen) which can be sized smaller than the overall display of the device, but would be shown on top of the existing display, covering it up–like an additional layer?  
(Basically, could be sized anything, and positioned anywhere–the important property is that it is overlaid)  
Then user could program anything to be in that pop-up window, including a timed self-dismissal.

---

<div class="post-metadata">

**Author:** ![jw01563daqgz](https://avatars.discourse-cdn.com/v4/letter/j/58956e/32.png) [@jw01563daqgz](https://community.thunkable.com/u/jw01563daqgz)\
**Post date:** [June 14, 2019, 4:30pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/6 "2019-06-14T16:30:01Z")

</div>

Just Implemented this method and it works pretty great! Had to do a little extra work tho

---

<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:** [June 14, 2019, 9:33pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/7 "2019-06-14T21:33:26Z")

</div>

Awesome 👍 would be great if you could share a quick screenshot of your approach, or if you wanted to, you could add a paragraph or two and post it to #thunkable-cross-tutorials? 😃

---

<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, 12:13pm UTC](https://community.thunkable.com/t/alert-automatically-closes/106381/8 "2024-11-08T12:13:28Z")

</div>


