# Open a pop up based on tag value in vision

**URL:** <https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085>\
**Category:** Ignition\
**Created:** [September 25, 2020, 8:24pm UTC](https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085 "2020-09-25T20:24:34Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mbai1](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mbai1](https://forum.inductiveautomation.com/u/mbai1)\
**Post date:** [September 25, 2020, 8:24pm UTC](https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085/1 "2020-09-25T20:24:34Z")

</div>

Hello, I want to have a pop up window open in vision when some tags values become 1 as an alarm page. what is the best way to achieve this? thanks

---

<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:** [September 25, 2020, 8:56pm UTC](https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085/2 "2020-09-25T20:56:25Z")

</div>

You could use a client event script tag change event handler to monitor the tag(s) for changes.

 ![Screenshot_20200926-062323_Chrome](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/d/1d4dd4d66a69f5827a949f8273162b8fe0ce8de6.jpeg)

If you want to pop it up for any alarm, then I would create a memory expression tag that called `system.alarm.queryStatus` to count alarms in the folder it’s in, and monitor tag change events on that tag.

This is the UDT that I use to count alarms within a folder (and its subfolders) :  
[Area Alarms.xml](https://forum.inductiveautomation.com/uploads/short-url/2cPNho1YGklVImONAJk4izd2Gqb.xml) (1.2 KB)  
You can just place it in the root tag folder to count all alarms

---

<div class="post-metadata">

**Author:** ![mbai1](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mbai1](https://forum.inductiveautomation.com/u/mbai1)\
**Post date:** [September 25, 2020, 8:58pm UTC](https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085/3 "2020-09-25T20:58:45Z")

</div>

that is a good idea, thanks for your help

---

<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:** [September 25, 2020, 9:00pm UTC](https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085/4 "2020-09-25T21:00:52Z")

</div>

No worries. Not sure if you saw, but I edited my post above and added a udt xml to it

---

<div class="post-metadata">

**Author:** ![mbai1](https://avatars.discourse-cdn.com/v4/letter/m/9fc29f/32.png) [@mbai1](https://forum.inductiveautomation.com/u/mbai1)\
**Post date:** [September 25, 2020, 9:01pm UTC](https://forum.inductiveautomation.com/t/open-a-pop-up-based-on-tag-value-in-vision/39085/5 "2020-09-25T21:01:41Z")

</div>

got you, thanks
