# Need to pass a value from one template to another template even for Mutiple instances

**URL:** <https://forum.inductiveautomation.com/t/need-to-pass-a-value-from-one-template-to-another-template-even-for-mutiple-instances/71305>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [March 20, 2023, 12:47pm UTC](https://forum.inductiveautomation.com/t/need-to-pass-a-value-from-one-template-to-another-template-even-for-mutiple-instances/71305 "2023-03-20T12:47:19Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![saravanan\_Manickam](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@saravanan\_Manickam](https://forum.inductiveautomation.com/u/saravanan_Manickam)\
**Post date:** [March 20, 2023, 12:47pm UTC](https://forum.inductiveautomation.com/t/need-to-pass-a-value-from-one-template-to-another-template-even-for-mutiple-instances/71305/1 "2023-03-20T12:47:19Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/8/1/8113cdaea84f09db8a0cd3b492d9cdcc019ef3b8.png)

Here the 1st dropdown in the one template and the below dropdown was a another template.

in both the dropdown I have used query binding, by the 1st value of the dropdown the used for the where condition in the second dropdown.

I have create a custom param(as global) then bind it as bidirectional for single instances its working...

while I chose another value in 1st dropdown it changes for all instance because it was bind into global parameter...

---

<div class="post-metadata">

**Author:** ![saravanan\_Manickam](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@saravanan\_Manickam](https://forum.inductiveautomation.com/u/saravanan_Manickam)\
**Post date:** [March 21, 2023, 12:21pm UTC](https://forum.inductiveautomation.com/t/need-to-pass-a-value-from-one-template-to-another-template-even-for-mutiple-instances/71305/2 "2023-03-21T12:21:10Z")

</div>

@avaughn your inputs or suggestion please

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [March 21, 2023, 1:32pm UTC](https://forum.inductiveautomation.com/t/need-to-pass-a-value-from-one-template-to-another-template-even-for-mutiple-instances/71305/3 "2023-03-21T13:32:37Z")

</div>

> [@saravanan\_Manickam](#):
>
> I have create a custom param(as global)

What do you mean by this?

- Do you mean you created a property in `session.custom`? (these are global to the active session)
- Do you mean you created a property in your template dropdown View's `params` area as an output and bound it? (these are global in the sense that the binding will be the same for all instances of the View)
- Do you mean you created a property in your template dropdown View's `custom` area and bound it? (same as above)
- or something else?

> [@saravanan\_Manickam](#):
>
> while I chose another value in 1st dropdown it changes for all instance because it was bind into global parameter...

You seem to have already located your issue here.  
You should be adding the binding to the Embedded View's `props.params.<propName>` instead of hardcoding it into the template View itself

---

<div class="post-metadata">

**Author:** ![saravanan\_Manickam](https://avatars.discourse-cdn.com/v4/letter/s/278dde/32.png) [@saravanan\_Manickam](https://forum.inductiveautomation.com/u/saravanan_Manickam)\
**Post date:** [March 21, 2023, 7:38pm UTC](https://forum.inductiveautomation.com/t/need-to-pass-a-value-from-one-template-to-another-template-even-for-mutiple-instances/71305/4 "2023-03-21T19:38:24Z")

</div>

Dear Nick Minchin,

yes, the second point is right. need to check a new logic for all instances of the View.

regards,  
Saravanan M
