# Best way to change Alarm Count Label behavior?

**URL:** <https://forum.inductiveautomation.com/t/best-way-to-change-alarm-count-label-behavior/38042>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [August 24, 2020, 10:33pm UTC](https://forum.inductiveautomation.com/t/best-way-to-change-alarm-count-label-behavior/38042 "2020-08-24T22:33:48Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mriederer](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mriederer](https://forum.inductiveautomation.com/u/mriederer)\
**Post date:** [August 24, 2020, 10:33pm UTC](https://forum.inductiveautomation.com/t/best-way-to-change-alarm-count-label-behavior/38042/1 "2020-08-24T22:33:48Z")

</div>

Hi,

We have a project with the default Navigation window and Alarm Count Label component. As such, the alarm label background color behavior is controlled by a style customizer. However, I want more precise control of the behavior based on the number of acknowledged/unack’ed alarms.

Specifically I’m trying to stop the blinking after alarms have been acknowledged, and revert back to white background after all alarms are cleared.

I believe scripting would work best because the style customizer seems not well suited for this case. I set up a new custom property counting the unacked alarms, but this doesn’t update well with the ‘Alarms’ popup’s onAcknowledge event script because that script runs before it’s actually acknowledged. I tried a timer to delay when the unAcked alarm count is updated… but still seems to crash.

Any help on the best way to do this would be appreciated. I thought it would be best to have it run off the client’s actions instead of a gateway timer script, but maybe that would be better?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/1/714e9d0efbdc8530c1513396e525735f2e988173.png)

Thanks,

Michael

---

<div class="post-metadata">

**Author:** ![ali.khalil](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ali.khalil/32/18169_2.png) [@ali.khalil](https://forum.inductiveautomation.com/u/ali.khalil)\
**Post date:** [August 25, 2020, 7:30am UTC](https://forum.inductiveautomation.com/t/best-way-to-change-alarm-count-label-behavior/38042/2 "2020-08-25T07:30:59Z")

</div>

Hi,

Have you thought of using the readily available alarming tags under “[System]Gateway/Alarming”.

You may be able to use these values to manipulate your label. I am using Ignition 8.0.12.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/2/8227b5aa42ab538e692bb150f12c5314fae08a70.png)

---

<div class="post-metadata">

**Author:** ![mriederer](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mriederer](https://forum.inductiveautomation.com/u/mriederer)\
**Post date:** [August 25, 2020, 6:10pm UTC](https://forum.inductiveautomation.com/t/best-way-to-change-alarm-count-label-behavior/38042/3 "2020-08-25T18:10:39Z")

</div>

Ah, I knew I was missing something! Thank you.

I’m curious what the scan class on these is, if any?

---

<div class="post-metadata">

**Author:** ![mriederer](https://avatars.discourse-cdn.com/v4/letter/m/4af34b/32.png) [@mriederer](https://forum.inductiveautomation.com/u/mriederer)\
**Post date:** [August 25, 2020, 10:41pm UTC](https://forum.inductiveautomation.com/t/best-way-to-change-alarm-count-label-behavior/38042/6 "2020-08-25T22:41:26Z")

</div>

I ended up using the Style Customizer using your Gateway tag advice and a custom property with some logic.
