# Best Way to Return Data from Vision Popup

**URL:** <https://forum.inductiveautomation.com/t/best-way-to-return-data-from-vision-popup/92912>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [July 8, 2024, 5:49pm UTC](https://forum.inductiveautomation.com/t/best-way-to-return-data-from-vision-popup/92912 "2024-07-08T17:49:41Z")\
**Posts on this page:** 1\
**Showing post:** 12

<div class="post-metadata">

**Author:** ![bschroeder](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bschroeder/32/13260_2.png) [@bschroeder](https://forum.inductiveautomation.com/u/bschroeder)\
**Post date:** [July 9, 2024, 12:44pm UTC](https://forum.inductiveautomation.com/t/best-way-to-return-data-from-vision-popup/92912/12 "2024-07-09T12:44:09Z")

</div>

I've used something like this as well when having a generic popup to do things.

> [@Passing reference to component to a window](https://forum.inductiveautomation.com/t/passing-reference-to-component-to-a-window/59368/3):
>
> I’m copy pasting my personal notes, but perhaps you’ll find them useful. Here: Using callbacks in Vision Window - Caller Can be in the script of a button. The callback can reference event or self depending on the context in which this script is running (within a custom method, or a component event). def callback(): print 'hey' window = system.nav.openWindowInstance('Popups/popupName') window.putClientProperty('callback', callback) system.nav.centerWindow(window) Popup - Callback windo…

Basically, you have a function on your window that you would pass to the popup, and the popup would call that function before closing to either pass data back, or provide a confirmation etc...

---

_[View the full topic](https://forum.inductiveautomation.com/t/best-way-to-return-data-from-vision-popup/92912)._
