# Trigger panel error message

**URL:** <https://forum.getkirby.com/t/trigger-panel-error-message/8750>\
**Category:** Questions\
**Tags:** v2\
**Created:** [October 10, 2017, 4:35pm UTC](https://forum.getkirby.com/t/trigger-panel-error-message/8750 "2017-10-10T16:35:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MinmlCo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/minmlco/32/3493_2.png) [@MinmlCo](https://forum.getkirby.com/u/MinmlCo)\
**Post date:** [October 10, 2017, 4:35pm UTC](https://forum.getkirby.com/t/trigger-panel-error-message/8750/1 "2017-10-10T16:35:17Z")

</div>

Hey All,

I’m wondering if it’s possible to trigger the panel’s error popup using JS?

I know it can be done in PHP but needing this in JS 🙂

Thanks!

---

<div class="post-metadata">

**Author:** ![MinmlCo](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/minmlco/32/3493_2.png) [@MinmlCo](https://forum.getkirby.com/u/MinmlCo)\
**Post date:** [October 10, 2017, 4:57pm UTC](https://forum.getkirby.com/t/trigger-panel-error-message/8750/2 "2017-10-10T16:57:00Z")

</div>

I’m guessing if not it may have to be an AJAX call to a script which then will output the notification/error. Looking for a simpler way though.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [October 10, 2017, 5:12pm UTC](https://forum.getkirby.com/t/trigger-panel-error-message/8750/3 "2017-10-10T17:12:07Z")

</div>

Well, if you really want to trigger the `$panel->notify()` then I don’t think you could do that without an Ajax call. But why not inject an error message with JavaScript without calling notify?

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 5:31pm UTC](https://forum.getkirby.com/t/trigger-panel-error-message/8750/4 "2025-02-06T17:31:59Z")

</div>

Archived on February 6, 2025, 5:31pm UTC


