# Close popup window

**URL:** <https://forum.inductiveautomation.com/t/close-popup-window/18381>\
**Category:** Ignition\
**Created:** [June 11, 2018, 1:34am UTC](https://forum.inductiveautomation.com/t/close-popup-window/18381 "2018-06-11T01:34:15Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![ruica.cristina](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@ruica.cristina](https://forum.inductiveautomation.com/u/ruica.cristina)\
**Post date:** [June 11, 2018, 1:34am UTC](https://forum.inductiveautomation.com/t/close-popup-window/18381/1 "2018-06-11T01:34:15Z")

</div>

I have configured ignition to show a popup window when the value of a tag is \> than a value… now…on this popup I have a button that says “Ignore”. How can I do that when I click Ignore, the popup stop showing? Because even if i close it, it still appears while the value of the tag is \> than the specified value

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [June 11, 2018, 2:00am UTC](https://forum.inductiveautomation.com/t/close-popup-window/18381/2 "2018-06-11T02:00:32Z")

</div>

You need to make sure your code that opens the popup only run once. If it runs continuously when the condition is true, it will reopen the popup. If you share exactly what you are doing so far, it will be easier for someone to help with more detailed how-to information, if needed.

---

<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:** [June 11, 2018, 11:34am UTC](https://forum.inductiveautomation.com/t/close-popup-window/18381/3 "2018-06-11T11:34:37Z")

</div>

You have to store your state in another persistent variable somewhere that remembers that you clicked Ignore. And check that persistent variable when new values arrive (new events) to decide whether to show the popup and whether to reset that variable. Or perhaps store your custom “alarm” in another (boolean) property or client tag, and show your popup when that boolean changes from false to true.

---

<div class="post-metadata">

**Author:** ![ruica.cristina](https://avatars.discourse-cdn.com/v4/letter/r/898d66/32.png) [@ruica.cristina](https://forum.inductiveautomation.com/u/ruica.cristina)\
**Post date:** [June 11, 2018, 11:48am UTC](https://forum.inductiveautomation.com/t/close-popup-window/18381/4 "2018-06-11T11:48:08Z")

</div>

I wrote a script in Project - Client Event Scripts - Tag Change.  
With a “if” clause, when the value \>30, my popup window shows up.

---

<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:** [June 11, 2018, 12:44pm UTC](https://forum.inductiveautomation.com/t/close-popup-window/18381/5 "2018-06-11T12:44:50Z")

</div>

> [@ruica.cristina](#):
>
> I wrote a script in Project - Client Event Scripts - Tag Change

That's the problem. You'll get an event when the tag goes from 30 -\> 31, which will fire the popup. Then another event when the tag goes from 31 -\> 32, and another popup. It can even go from 32 -\> 31, and you'll get another event and popup. The problem is that you are watching the tag itself change, and checking the value. What you need is to compute an "alarm" status boolean, and watch _that_ change. A boolean client tag that does your comparison would suit.
