# How can I pass a parameter to a template?

**URL:** <https://forum.inductiveautomation.com/t/how-can-i-pass-a-parameter-to-a-template/4933>\
**Category:** Ignition\
**Created:** [August 6, 2012, 3:38pm UTC](https://forum.inductiveautomation.com/t/how-can-i-pass-a-parameter-to-a-template/4933 "2012-08-06T15:38:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [August 6, 2012, 3:38pm UTC](https://forum.inductiveautomation.com/t/how-can-i-pass-a-parameter-to-a-template/4933/1 "2012-08-06T15:38:52Z")

</div>

I have a container that contains a graph and a custom property called TestID. I have added code on the container’s property change event to populate the chart based on the new value the TestID is changed to. I then turned the container into a template. My question is a how do I change the custom property TestID inside the template?

I want to use this template in many places and use it multiple times on a singe window.

Thank for the help,

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [August 6, 2012, 3:46pm UTC](https://forum.inductiveautomation.com/t/how-can-i-pass-a-parameter-to-a-template/4933/2 "2012-08-06T15:46:51Z")

</div>

You just add a template parameter (custom property) to the template. The template parameter shows up every time you use the template and it can be different. It really is just a custom property added to a template.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [August 6, 2012, 4:02pm UTC](https://forum.inductiveautomation.com/t/how-can-i-pass-a-parameter-to-a-template/4933/3 "2012-08-06T16:02:05Z")

</div>

I see I can put a custom property on the template, but if i try to move the property change code from the master template to the instance of the template I do not seem to have access to the components inside the template.

---

<div class="post-metadata">

**Author:** ![Jonathan](https://avatars.discourse-cdn.com/v4/letter/j/aeb1de/32.png) [@Jonathan](https://forum.inductiveautomation.com/u/Jonathan)\
**Post date:** [August 6, 2012, 4:44pm UTC](https://forum.inductiveautomation.com/t/how-can-i-pass-a-parameter-to-a-template/4933/4 "2012-08-06T16:44:17Z")

</div>

Nevermind, I called into support and the reason i was not getting the template parameters was because my container was the same size as my template and when i would right click it would only give me custom parameters for the container not the template.
