# Resetting of variables on close of popup window

**URL:** <https://forum.inductiveautomation.com/t/resetting-of-variables-on-close-of-popup-window/97214>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [October 14, 2024, 11:54am UTC](https://forum.inductiveautomation.com/t/resetting-of-variables-on-close-of-popup-window/97214 "2024-10-14T11:54:29Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mark\_Rowell](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@Mark\_Rowell](https://forum.inductiveautomation.com/u/Mark_Rowell)\
**Post date:** [October 14, 2024, 11:54am UTC](https://forum.inductiveautomation.com/t/resetting-of-variables-on-close-of-popup-window/97214/1 "2024-10-14T11:54:29Z")

</div>

Is it possible to reset variable values when closing a popup window? I have not seen any type of closing event on the popup which would prompt code to reset variables used in the popup.

---

<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:** [October 14, 2024, 12:03pm UTC](https://forum.inductiveautomation.com/t/resetting-of-variables-on-close-of-popup-window/97214/3 "2024-10-14T12:03:59Z")

</div>

When a Vision popup closes, it ceases to exist, so there's nothing to reset.

(If cached, it doesn't completely cease to exist, but binding initialization happens from scratch when re-opened.)

If you want to ensure constant initial values on open, the most reliable technique is to have **constant** expression bindings on those properties. Such bindings only run once, on component startup.
