# \[Solved\] Can I cancel an alert? / Alternative alert modals

**URL:** <https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [August 7, 2022, 8:18pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784 "2022-08-07T20:18:39Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![eladkobitr8f](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@eladkobitr8f](https://community.thunkable.com/u/eladkobitr8f)\
**Post date:** [August 7, 2022, 8:18pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/1 "2022-08-07T20:18:39Z")

</div>

Hey guys! Small quesiton.  
I have an alert that when a confirm button is clicked the app makes a phone call.  
My question is like that, if when the Alert is showing and lets say for like 15 seconds there is no press, not on the confirm button and not on the cancel. Can I some how make the alert after 15 seconds to act like confirm button has been pushed? I thought about using timers but I am not sure. Thank’s for the help!

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [August 7, 2022, 9:13pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/2 "2022-08-07T21:13:52Z")

</div>

Something like this will solve your issue ?

 ![screen](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/9/99da65617768a959f4809afad0f3b28100f60f85.png)  
(It’s late, I didn’t test it, it depends of what you have as code after these blocks and so on ☺)

---

<div class="post-metadata">

**Author:** ![eladkobitr8f](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@eladkobitr8f](https://community.thunkable.com/u/eladkobitr8f)\
**Post date:** [August 7, 2022, 9:46pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/3 "2022-08-07T21:46:37Z")

</div>

Thank’s @mimostel, it worked. I really apricate the help.

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [August 7, 2022, 9:51pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/4 "2022-08-07T21:51:08Z")

</div>

I’m glad  
And as a personal thought, this wouldn’t worked if Alert was modal like someone else asked.

> [@Why doesn't the alert dialog pause a for Each loop?](https://community.thunkable.com/t/why-doesnt-the-alert-dialog-pause-a-for-each-loop/1985676):
>
> I have an Alert inside a “for each item in list” loop. It appears that the Alert is not Modal. ie: I need the App to wait for the User to press “confirm” or “cancel” first and then the App should act according to the “wasConfirmed” flag, and if true to continue in the loop, which may later throw up the same Alert again in the same loop. However the loop just keeps looping and does not wait for the User to respond to the Alert dialog and press a button first. Am I doing something wrong or is t…

It would force you to have some imput before continue. So, one more reason to be as it is, as any situation can be solved this way.

---

<div class="post-metadata">

**Author:** ![eladkobitr8f](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@eladkobitr8f](https://community.thunkable.com/u/eladkobitr8f)\
**Post date:** [August 7, 2022, 9:54pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/5 "2022-08-07T21:54:55Z")

</div>

@mimostel Thank’s! Is there a way to make the alert window go away after the 15 seconds have passed and the call has been made? Not a big deal if there is no way. Thank’s!

---

<div class="post-metadata">

**Author:** ![mimostel](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/mimostel/32/107661_2.png) [@mimostel](https://community.thunkable.com/u/mimostel)\
**Post date:** [August 7, 2022, 10:00pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/6 "2022-08-07T22:00:21Z")

</div>

If there is, I don’t have knowledge about it. And I left the computer to search (It’s late in Romania 🤭). Never tried to get rid of that window without choosing an answer

---

<div class="post-metadata">

**Author:** ![eladkobitr8f](https://avatars.discourse-cdn.com/v4/letter/e/e9c0ed/32.png) [@eladkobitr8f](https://community.thunkable.com/u/eladkobitr8f)\
**Post date:** [August 7, 2022, 10:01pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/7 "2022-08-07T22:01:38Z")

</div>

@mimostel You have helped enough! Thank’s.

---

<div class="post-metadata">

**Author:** ![zander](https://avatars.discourse-cdn.com/v4/letter/z/ecb155/32.png) [@zander](https://community.thunkable.com/u/zander)\
**Post date:** [August 7, 2022, 11:05pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/8 "2022-08-07T23:05:35Z")

</div>

I don’t know if there is a way but you could always create your own “pop up” using a group and toggling the visbity of it

---

<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:** [August 7, 2022, 11:34pm UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/9 "2022-08-07T23:34:41Z")

</div>

This is how I like to do things.

I place a group on the very top of the screen in the components tree. Usually call it `modal debug` or something similar. Would be easy enough to add buttons but I use them to display errors from my many api calls.

If you open this app

> **[thunkablecompanion](https://thunkable.site/web-build/index.html?webAppId=euJ1ySBMh)**
>
> Powered by Thunkable

Then disconnect from the internet and try an action or even sign up for an account incorrectly, you’ll see what Zander is talking about.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [August 8, 2022, 2:06am UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/10 "2022-08-08T02:06:34Z")

</div>

i tried to login (im not yet signed up) with mismatching passwords and a blank listviewer showed up. is that i was expecting to see?  
i tried to sign up with bad format email and mismatching passwords and hit enter at last field (there was no submit button) but it just hung there (ie no action)  
can you show a picture of the block/s that does this “modal debug” thing? thanks

---

<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:** [August 8, 2022, 2:13am UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/11 "2022-08-08T02:13:49Z")

</div>

> [@manyone](#):
>
> can you show a picture of the block/s that does this “modal debug” thing? thanks

Of course!

 ![Screen Shot 2022-08-07 at 10.21.03 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/f/5f0cb1d990ba84ac2d9085e45929b288d28d3c4d.jpeg)

https://www.loom.com/embed/8f3a50bc1c9543c480fef704d9f3f5cd

i create a function that has an input to show the modal and set the label. I call that function anywhere an error may occur.

---

<div class="post-metadata">

**Author:** ![manyone](https://avatars.discourse-cdn.com/v4/letter/m/ee59a6/32.png) [@manyone](https://community.thunkable.com/u/manyone)\
**Post date:** [August 8, 2022, 2:54am UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/12 "2022-08-08T02:54:18Z")

</div>

thanks for the blocks! cool idea!  
was there supposed to be a call alert inside logger?  
when/how do you show the error?

---

<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:** [August 8, 2022, 3:20am UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/13 "2022-08-08T03:20:39Z")

</div>

I’m not using An alert.

I show my messages in the modal. This could be expanded upon to show a message and add some buttons and bam, a custom alert popup.

---

<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:** [November 6, 2022, 3:21am UTC](https://community.thunkable.com/t/solved-can-i-cancel-an-alert-alternative-alert-modals/1990784/14 "2022-11-06T03:21:30Z")

</div>

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