# How to throw custom errors so it will show as default alert?

**URL:** <https://community.fibery.io/t/how-to-throw-custom-errors-so-it-will-show-as-default-alert/2072>\
**Category:** Get Help\
**Created:** [September 29, 2021, 10:20am UTC](https://community.fibery.io/t/how-to-throw-custom-errors-so-it-will-show-as-default-alert/2072 "2021-09-29T10:20:20Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Niraj\_Chourasia](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/niraj_chourasia/32/4084_2.png) [@Niraj\_Chourasia](https://community.fibery.io/u/Niraj_Chourasia)\
**Post date:** [September 29, 2021, 10:20am UTC](https://community.fibery.io/t/how-to-throw-custom-errors-so-it-will-show-as-default-alert/2072/1 "2021-09-29T10:20:20Z")

</div>

Hello there,

I need quick help plz.

I need to show custom error or message through script based on action button or rule.

Please suggest me how i can achieve it.

Thanks

---

<div class="post-metadata">

**Author:** ![Oleg](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/oleg/32/1887_2.png) [@Oleg](https://community.fibery.io/u/Oleg)\
**Post date:** [September 29, 2021, 11:24am UTC](https://community.fibery.io/t/how-to-throw-custom-errors-so-it-will-show-as-default-alert/2072/2 "2021-09-29T11:24:25Z")

</div>

Hi, @Niraj_Chourasia

You may just throw error in script. Like I did in script action below

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/d/db13ac258f0698314a4faace1c02eefabde9a2c6.png)

The result will be the following

 ![image](https://us1.discourse-cdn.com/flex020/uploads/fibery/original/2X/9/9b22033b7be10899b3130a7611ccc6fc83ac4aac.png)

Please let me know if you have any questions or comments.

Thanks,  
Oleg

---

<div class="post-metadata">

**Author:** ![Niraj\_Chourasia](https://sea2.discourse-cdn.com/flex020/user_avatar/community.fibery.io/niraj_chourasia/32/4084_2.png) [@Niraj\_Chourasia](https://community.fibery.io/u/Niraj_Chourasia)\
**Post date:** [September 29, 2021, 12:53pm UTC](https://community.fibery.io/t/how-to-throw-custom-errors-so-it-will-show-as-default-alert/2072/3 "2021-09-29T12:53:13Z")

</div>

Thank you so much.
