# PopUp from a tags value change

**URL:** <https://forum.inductiveautomation.com/t/popup-from-a-tags-value-change/64621>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [September 28, 2022, 9:16pm UTC](https://forum.inductiveautomation.com/t/popup-from-a-tags-value-change/64621 "2022-09-28T21:16:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjohnson0238](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mjohnson0238](https://forum.inductiveautomation.com/u/mjohnson0238)\
**Post date:** [September 28, 2022, 9:16pm UTC](https://forum.inductiveautomation.com/t/popup-from-a-tags-value-change/64621/1 "2022-09-28T21:16:23Z")

</div>

How could I achieve making a popup open when a boolean goes true then close when it goes false?

---

<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 28, 2022, 9:53pm UTC](https://forum.inductiveautomation.com/t/popup-from-a-tags-value-change/64621/2 "2022-09-28T21:53:25Z")

</div>

Gateway tag change script, then use system.perspective.getSessionInfo to get a list of all the active sessions, which you can then use to open the popup on b passing the session id to the open popup function.  
You could do it in a tag’s on change event as well

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [September 28, 2022, 9:58pm UTC](https://forum.inductiveautomation.com/t/popup-from-a-tags-value-change/64621/3 "2022-09-28T21:58:14Z")

</div>

There are actually several posts on this topic already, here are a few...

> [@Open pop up with tag event script ( Valued change)](https://forum.inductiveautomation.com/t/open-pop-up-with-tag-event-script-valued-change/56537):
>
> Based on this link [Open popup from session event - Ignition - Inductive Automation Forum](https://forum.inductiveautomation.com/t/open-popup-from-session-event/53148/5), I’ve developed a message handler with script named downtimepopup: system.perspective.openPopup('myPopupId', 'Primary/Downtime', position = {'left':100,'top':100},params=payload) Then, a value change tag event script: if previousValue.value == False and initialChange == False : system.perspective.sendMessage("downtimepopup") But it doesn’t work, no error for tag diagnostics. Any suggestions would be ap…

> [@Show a popup in perspective on all clients if a value changes](https://forum.inductiveautomation.com/t/show-a-popup-in-perspective-on-all-clients-if-a-value-changes/61133/3):
>
> what would that change script include? would I use an If statement followed by system.perpective.openPopup? I am pretty new to ignition
