# Open POPUP window by value change script

**URL:** <https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245>\
**Category:** Ignition\
**Tags:** scripting, vision\
**Created:** [February 23, 2024, 9:11am UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245 "2024-02-23T09:11:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafal\_Samoraj](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Rafal\_Samoraj](https://forum.inductiveautomation.com/u/Rafal_Samoraj)\
**Post date:** [February 23, 2024, 9:11am UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245/1 "2024-02-23T09:11:04Z")

</div>

I`d like to open popup window by bit value change.  
I tried:

> system.nav.openWindow("MyPopUP")

But, It doesn`t work. How to do it?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [February 23, 2024, 9:48am UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245/2 "2024-02-23T09:48:16Z")

</div>

You'd need to tell us where you placed this code and what exactly the bit is.

---

<div class="post-metadata">

**Author:** ![Rafal\_Samoraj](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Rafal\_Samoraj](https://forum.inductiveautomation.com/u/Rafal_Samoraj)\
**Post date:** [February 23, 2024, 11:34am UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245/3 "2024-02-23T11:34:29Z")

</div>

Ultimately, I want to use the bit from Siemens PLC.  
But, now, I use testBIT(boolean) witch is memory tag in Ignition.  
I want to make it so that I am on the main page of my SCADA and when bit value change, Popup window appears.

 ![igni](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/4/e4120f47fa1a54ad548b1881b75a793c6785fb6a.jpeg)

---

<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:** [February 23, 2024, 12:50pm UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245/4 "2024-02-23T12:50:02Z")

</div>

You are trying to use a tag event, which runs in the gateway service, with a navigation function that must run in the Vision Client. No can do.

Instead, use Client Tag Change event to monitor the tag **inside** the Vision Client, and it will be able to use the navigation function.

---

<div class="post-metadata">

**Author:** ![Rafal\_Samoraj](https://avatars.discourse-cdn.com/v4/letter/r/59ef9b/32.png) [@Rafal\_Samoraj](https://forum.inductiveautomation.com/u/Rafal_Samoraj)\
**Post date:** [February 23, 2024, 2:40pm UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245/6 "2024-02-23T14:40:24Z")

</div>

Thank you, It works.  
What if I want to use Perspective? There is no "Client Events".

---

<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:** [February 23, 2024, 2:43pm UTC](https://forum.inductiveautomation.com/t/open-popup-window-by-value-change-script/86245/7 "2024-02-23T14:43:16Z")

</div>

Perspective can use a custom session property to bind the tag of interest, then use a property change event on it to run a suitable script. That script will have to loop through the pages of the session to have a context into which to launch a popup.

Almost **nothing** is done precisely the same in Perspective as in Vision.
