# Template instance to pop up window pass parameters

**URL:** <https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [June 6, 2025, 10:18pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147 "2025-06-06T22:18:16Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 6, 2025, 10:18pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/1 "2025-06-06T22:18:16Z")

</div>

Hello, I have a template with a button that opens a pop up window. I want each instance of the template to open up a pop up window and send its instance parameter.

I have heaterNumber as a parameter of the pop up window, and AAA as the template parameter. I don't get any errors but it always opens the same window even though there are many instances of the template with different template parameter..

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/0/1/017849258f214116c0d752d47558b22062ff81e1.jpeg)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [June 6, 2025, 10:34pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/2 "2025-06-06T22:34:20Z")

</div>

> [@aaaa](#):
>
> opens the same window

Are you trying to open one instance of the popup per template instance? If so, you need to select the `Additional Instance` option.

Or are you trying to dynamically open a different popup window (not just `selectTCsToAvg`)

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 6, 2025, 10:36pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/3 "2025-06-06T22:36:28Z")

</div>

That's right! I did selected additional instances though and it's still not creating new ones for each instance of the template. they all seam to default to the one with the parameter as 1

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 6, 2025, 10:37pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/4 "2025-06-06T22:37:01Z")

</div>

New instance of selectTCsToAvg pop up per template instance. Want each pair to have the same parameter

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [June 6, 2025, 10:38pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/5 "2025-06-06T22:38:11Z")

</div>

> [@aaaa](#):
>
> default to the one with the parameter as 1

Have you confirmed that each template is receiving the correct value where it is used? Add a label component and bind the label's value to the parameter.

---

<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:** [June 6, 2025, 10:38pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/6 "2025-06-06T22:38:22Z")

</div>

Look for typos. Parameter names are case sensitive.

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 6, 2025, 10:59pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/7 "2025-06-06T22:59:58Z")

</div>

Yes each template receives the parameter!

This may be a different problem:  
I have checkboxes in the pop up window with this indirect tag binding  
[default]XYZ/bHeater{2}ThermocouplesSelected[{1}]  
{1} is set by the template repeater component. {2} is that parameter im passing from template instance to pop up window.

How do I verify the result of the indirect binding? because the tags don't change to true when I check the checkboxes.

Also, the checkboxes reset everytime i close and reopen 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:** [June 6, 2025, 11:33pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/8 "2025-06-06T23:33:39Z")

</div>

> [@aaaa](#):
>
> the tags don't change to true when I check the checkboxes.

Are you trying to pass live tag **values** to these popups? Popup parameters are one-way snapshots. You can't write back to the source through them.

For this task, you must pass tagpaths, not actual tag values, and use indirect binding (bidirectional) within the popup.

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:29pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/9 "2025-06-11T18:29:38Z")

</div>

I'm passing the tag path. And I indeed has bidirectional unchecked. Now, the label in the pop up shows the parameter passing correctly, but it seems like it's not applied to the checkboxes in the template repeater? Any pop up writes to the same array with parameter = 1.

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:30pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/10 "2025-06-11T18:30:51Z")

</div>

So pop up -\> label, the parameter makes it, but pop up -\> template repeater it doesn't

---

<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:** [June 11, 2025, 6:31pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/11 "2025-06-11T18:31:28Z")

</div>

The checkboxes need the bidirectional indirect tag binding. Is that where you have that binding?

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:31pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/12 "2025-06-11T18:31:52Z")

</div>

yes! that is good now. i can write to the tag. but any instance of the pop up writes to the same tag

---

<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:** [June 11, 2025, 6:34pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/13 "2025-06-11T18:34:45Z")

</div>

Sounds like your tag path passing isn't reaching your popup's root container. Consider showing the Script Editor tab from your navigation.

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:35pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/14 "2025-06-11T18:35:45Z")

</div>

It does reach it because i have a label in the container, which is different from pop up to pop up

---

<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:** [June 11, 2025, 6:36pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/15 "2025-06-11T18:36:37Z")

</div>

You'll have to share more, as we cannot track how your data is flowing in your template or your popup. Do you have labels in both your template and your popup showing the tag paths? Are you sure your checkbox indirect tag binding is using the tag path showing in your label? (Show us that, perhaps.)

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:40pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/16 "2025-06-11T18:40:11Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/7/4759fdfff10a32b106cd615288573ba5062ff697.jpeg)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/7/e776b92371efe3f2614b0ec32fa8df2cd6178bbe.jpeg)  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/f/7f065734f9354366b3603b52f7d71651203ed6a7.png)

and the pop up has custom properties HeaterNumber.

Is this helpful?

---

<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:** [June 11, 2025, 6:52pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/17 "2025-06-11T18:52:33Z")

</div>

That isn't passing a tag path, fwiw. You should reconsider that.

Your indirect binding is using two substitutions, but your popup nav is only supplying one of the necessary values. So TCNumber will be constant in the popup, holding the value last saved in the designer.

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:54pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/18 "2025-06-11T18:54:26Z")

</div>

> [@pturmel](#):
>
> That isn't passing a tag path, fwiw. You should reconsider that.
> 
> Your indirect binding is using two substitutions, but your popup nav is only supplying one of the necessary values. So TCNumber will be constant in the popup, holding the value last saved in the designer.

SCR number is provided by a template instance. (the value that passes to the label, but not the checkbox)  
TCNumber is incremented by the template repeater.

---

<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:** [June 11, 2025, 6:55pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/19 "2025-06-11T18:55:23Z")

</div>

Yeah, but nothing about your template will pass TCNumber to the popup. So of course it doesn't change.

---

<div class="post-metadata">

**Author:** ![aaaa](https://avatars.discourse-cdn.com/v4/letter/a/eb8c5e/32.png) [@aaaa](https://forum.inductiveautomation.com/u/aaaa)\
**Post date:** [June 11, 2025, 6:56pm UTC](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147/20 "2025-06-11T18:56:21Z")

</div>

TCNumber is not the issue, it does increment from the template repeater component. And I don't want it to be different from each pop up. It's the HeaterNumber in checkbox that is the same throughout pop ups but shouldn't be

[Next page](https://forum.inductiveautomation.com/t/template-instance-to-pop-up-window-pass-parameters/107147.md?page=2)
