# Triggered pop up window frolm tag alarm active script?

**URL:** <https://forum.inductiveautomation.com/t/triggered-pop-up-window-frolm-tag-alarm-active-script/62043>\
**Category:** Ignition\
**Created:** [July 18, 2022, 11:43pm UTC](https://forum.inductiveautomation.com/t/triggered-pop-up-window-frolm-tag-alarm-active-script/62043 "2022-07-18T23:43:08Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![rahman.tarek](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rahman.tarek](https://forum.inductiveautomation.com/u/rahman.tarek)\
**Post date:** [July 18, 2022, 11:43pm UTC](https://forum.inductiveautomation.com/t/triggered-pop-up-window-frolm-tag-alarm-active-script/62043/1 "2022-07-18T23:43:08Z")

</div>

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

Hello i have a use case where if the alarm is active, i want take the name of a tag and open up a popup window and pass the name of the tag. The image shows what im doing. Unfortunately it does not work. any idea why?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 19, 2022, 12:22am UTC](https://forum.inductiveautomation.com/t/triggered-pop-up-window-frolm-tag-alarm-active-script/62043/2 "2022-07-19T00:22:32Z")

</div>

Because tags aren’t connected to any client UI except through binding. Tag events and alarm events are intended for _ **unattended** _ automated processes, not for UI interaction. The only thing you can really do for UI interaction is to broadcast a message to your UIs (via system.util.sendMessage).

---

<div class="post-metadata">

**Author:** ![rahman.tarek](https://avatars.discourse-cdn.com/v4/letter/r/b77776/32.png) [@rahman.tarek](https://forum.inductiveautomation.com/u/rahman.tarek)\
**Post date:** [July 19, 2022, 1:10am UTC](https://forum.inductiveautomation.com/t/triggered-pop-up-window-frolm-tag-alarm-active-script/62043/3 "2022-07-19T01:10:49Z")

</div>

i see. so in this situation what would you recommend? send a message and then handle the message through the client script? can i write a script here that opens up the popup window?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/9/79397de8f874dc811b5f2fd03a819d96289c4113.png)

Or is there any easier way? Basically i want to open up a window based on a tag value and pass some parameters

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [July 19, 2022, 1:13am UTC](https://forum.inductiveautomation.com/t/triggered-pop-up-window-frolm-tag-alarm-active-script/62043/4 "2022-07-19T01:13:45Z")

</div>

Yes, client tag change events can do this. Though the list of tags to monitor is fixed at design-time. Consider using tag bindings, especially _ **indirect** _ tag bindings, to monitor tag changes in specific windows or in templates. Then a propertyChange script can react (or other bindings can be evaluated).
