# Shelving an Alarm via Buttom

**URL:** <https://forum.inductiveautomation.com/t/shelving-an-alarm-via-buttom/107156>\
**Category:** Ignition\
**Tags:** scripting, ignition81, perspective\
**Created:** [June 8, 2025, 5:49am UTC](https://forum.inductiveautomation.com/t/shelving-an-alarm-via-buttom/107156 "2025-06-08T05:49:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![raees.khan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/raees.khan/32/76218_2.png) [@raees.khan](https://forum.inductiveautomation.com/u/raees.khan)\
**Post date:** [June 8, 2025, 5:49am UTC](https://forum.inductiveautomation.com/t/shelving-an-alarm-via-buttom/107156/1 "2025-06-08T05:49:03Z")

</div>

Hello IA Community,

How do i shelve an alarm via a button. I am testing a concept for a project and couldn't get this to work.

I am trying to use `system.alarm.shelve()` but it is not working.

Thank You

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [June 8, 2025, 9:27am UTC](https://forum.inductiveautomation.com/t/shelving-an-alarm-via-buttom/107156/2 "2025-06-08T09:27:19Z")

</div>

What isn't working? Pretend we don't know what you've tried

Have you read [system.alarm.shelve | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/appendix/scripting-functions/system-alarm/system-alarm-shelve)?

---

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [June 10, 2025, 2:29pm UTC](https://forum.inductiveautomation.com/t/shelving-an-alarm-via-buttom/107156/4 "2025-06-10T14:29:26Z")

</div>

> [@raees.khan](#):
>
> but it does not work

Any errors in the gateway logger?

---

<div class="post-metadata">

**Author:** ![raees.khan](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/raees.khan/32/76218_2.png) [@raees.khan](https://forum.inductiveautomation.com/u/raees.khan)\
**Post date:** [June 10, 2025, 2:59pm UTC](https://forum.inductiveautomation.com/t/shelving-an-alarm-via-buttom/107156/5 "2025-06-10T14:59:31Z")

</div>

I am getting this error in the gateway logger:

Alarm '[Site A]Motors/Motor 2/Amps/Alarms/Motor Amps Alarm' could not be shelved.

The alarm is configured to allow shelving
