# Prevent default alerts

**URL:** <https://forum.bubble.io/t/prevent-default-alerts/309851>\
**Category:** Need help\
**Created:** [February 28, 2024, 8:32pm UTC](https://forum.bubble.io/t/prevent-default-alerts/309851 "2024-02-28T20:32:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![desarrollo2](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@desarrollo2](https://forum.bubble.io/u/desarrollo2)\
**Post date:** [February 28, 2024, 8:32pm UTC](https://forum.bubble.io/t/prevent-default-alerts/309851/1 "2024-02-28T20:32:46Z")

</div>

Hello. When trying to log in and the password is incorrect, it shows me a default bubble alert, can I prevent this? Is there a way to prevent displaying the alerts that bubble has by default?  
 ![image](https://us1.discourse-cdn.com/bubble/original/3X/f/0/f0781ef4f394fdda724cc4fd355700cff867d044.png)

---

<div class="post-metadata">

**Author:** ![nico.dicagno](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/nico.dicagno/32/207961_2.png) [@nico.dicagno](https://forum.bubble.io/u/nico.dicagno)\
**Post date:** [February 28, 2024, 8:50pm UTC](https://forum.bubble.io/t/prevent-default-alerts/309851/2 "2024-02-28T20:50:40Z")

</div>

You can use the event ‘An unhandled error occurs’ to trigger a workflow.  
 ![Screenshot 2024-02-28 at 20.50.25](https://us1.discourse-cdn.com/bubble/original/3X/4/1/417ceeddbbfccf34146c3bb530754636139bf65f.png)

Using this workflow trigger will disable the alerts and allow you to do things such as display your own custom popup/alert.

Inside the workflow itself you will have access to ‘Current Workflow Error’ which will publish an error code and an error message that you can use to differentiate between the various error types.

Be careful using this, if the ‘unhandled error occurs’ event is triggered, it will disable all native alerts, and there are a lot of them (you can find the list on the app settings\>languages.  
I would recommend adding a fallback which displays the error message to the user if the workflow does not recognise the error code/message OR putting a conditional on the workflow so that it only runs with a subset of errors. If you do not do this, the user will not be shown any alert.

---

<div class="post-metadata">

**Author:** ![doug.burden](https://sea1.discourse-cdn.com/bubble/user_avatar/forum.bubble.io/doug.burden/32/179967_2.png) [@doug.burden](https://forum.bubble.io/u/doug.burden)\
**Post date:** [February 28, 2024, 10:13pm UTC](https://forum.bubble.io/t/prevent-default-alerts/309851/3 "2024-02-28T22:13:58Z")

</div>

![Screenshot 2024-02-28 161308](https://us1.discourse-cdn.com/bubble/original/3X/e/3/e3f50b5b53de926e349b3b39ace6dab15dd16b7a.png)  
Or you could get fancy and design a floating group to pop up.

---

<div class="post-metadata">

**Author:** ![desarrollo2](https://avatars.discourse-cdn.com/v4/letter/d/50afbb/32.png) [@desarrollo2](https://forum.bubble.io/u/desarrollo2)\
**Post date:** [March 11, 2024, 8:39pm UTC](https://forum.bubble.io/t/prevent-default-alerts/309851/4 "2024-03-11T20:39:27Z")

</div>

Thansk. It’s the solution I was looking for.

[image]

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/bubble/original/3X/2/8/2847faa74692c2ffa5d939d3dc3724cdd060d247.png) [@system](https://forum.bubble.io/u/system)\
**Post date:** [May 8, 2024, 8:33pm UTC](https://forum.bubble.io/t/prevent-default-alerts/309851/5 "2024-05-08T20:33:45Z")

</div>

Closed on May 8, 2024, 8:33pm UTC

This topic was automatically closed after 70 days. New replies are no longer allowed.
