# Parameterized Popup Window Writing TO Tags

**URL:** <https://forum.inductiveautomation.com/t/parameterized-popup-window-writing-to-tags/32273>\
**Category:** Ignition\
**Tags:** ignition80, scripting\
**Created:** [February 14, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/parameterized-popup-window-writing-to-tags/32273 "2020-02-14T15:40:39Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![melwadeya](https://avatars.discourse-cdn.com/v4/letter/m/ed8c4c/32.png) [@melwadeya](https://forum.inductiveautomation.com/u/melwadeya)\
**Post date:** [February 14, 2020, 3:40pm UTC](https://forum.inductiveautomation.com/t/parameterized-popup-window-writing-to-tags/32273/1 "2020-02-14T15:40:39Z")

</div>

Hi,

I am creating a popup template where a number of parameters will pass if the user presses a button.

In the popup, the user may edit some values (e.g. High Alarm set-point)

I created custom properties in the root container of the popup window and the same in the button. Then bound the button custom properties to tags.

In the button script (that launches the popup), how can the user changes in the popup be saved and written to the tags.

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:** [February 14, 2020, 3:45pm UTC](https://forum.inductiveautomation.com/t/parameterized-popup-window-writing-to-tags/32273/2 "2020-02-14T15:45:32Z")

</div>

Don’t send the parameter values to the root container of the popup, send the string tag path(s) instead. In the popup, use the tagpath with an indirect tag binding on your data entry fields. Make those indirect bindings bidirectional.

---

<div class="post-metadata">

**Author:** ![phill](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/phill/32/46793_2.png) [@phill](https://forum.inductiveautomation.com/u/phill)\
**Post date:** [May 13, 2020, 3:41pm UTC](https://forum.inductiveautomation.com/t/parameterized-popup-window-writing-to-tags/32273/3 "2020-05-13T15:41:37Z")

</div>

This is pretty slick. Any easy way to bind the correct tag is to bind directly to a specific instance of the tag first. Next, switch to indirect tag (the direct path follows) and change the path to the tagPath string that you passed in.
