# Passing tags by reference to a popup

**URL:** <https://forum.inductiveautomation.com/t/passing-tags-by-reference-to-a-popup/101688>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [January 31, 2025, 5:56pm UTC](https://forum.inductiveautomation.com/t/passing-tags-by-reference-to-a-popup/101688 "2025-01-31T17:56:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Allison\_Manhard](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Allison\_Manhard](https://forum.inductiveautomation.com/u/Allison_Manhard)\
**Post date:** [January 31, 2025, 5:56pm UTC](https://forum.inductiveautomation.com/t/passing-tags-by-reference-to-a-popup/101688/1 "2025-01-31T17:56:44Z")

</div>

Hi,

I have an ignition vision system where I am attempting to pass tags by reference to a popup window, so that I can send commands out after a confirmation click on the popup. Right now, I can pass parameters to the popup window with the tag path, where the tag path contains the string of the entire tag path. In the popup I can then dereference that string using system.tag.writeBlocking in a script. This works fine, it just seems a little clunky to me, and I was wondering if there is a better way to do this?

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/9/5/95929f6a9ef7c188e4db0485ed89f28275b92404.png)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/f/1f93edef2f046d4793187aa1f9b23834929be6dc.png)

Thanks!

---

<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:** [January 31, 2025, 6:09pm UTC](https://forum.inductiveautomation.com/t/passing-tags-by-reference-to-a-popup/101688/2 "2025-01-31T18:09:40Z")

</div>

You cannot pass by reference. You _ **can** _ pass a tag path as a string parameter and use that to perform indirect tag binding in the target view. (Which can be bidirectional.) You do not need to script the writes in this case.

---

<div class="post-metadata">

**Author:** ![Allison\_Manhard](https://avatars.discourse-cdn.com/v4/letter/a/bcef8e/32.png) [@Allison\_Manhard](https://forum.inductiveautomation.com/u/Allison_Manhard)\
**Post date:** [January 31, 2025, 6:16pm UTC](https://forum.inductiveautomation.com/t/passing-tags-by-reference-to-a-popup/101688/3 "2025-01-31T18:16:57Z")

</div>

Thanks! This makes sense, I think.  
I could pass the name of the tag as a string, and then indirectly bind the tag if the rest of my tag path is fixed.
