# Get custom property from window template will be placed on

**URL:** <https://forum.inductiveautomation.com/t/get-custom-property-from-window-template-will-be-placed-on/15126>\
**Category:** Ignition\
**Created:** [August 21, 2017, 8:38pm UTC](https://forum.inductiveautomation.com/t/get-custom-property-from-window-template-will-be-placed-on/15126 "2017-08-21T20:38:14Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dws2384](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dws2384](https://forum.inductiveautomation.com/u/dws2384)\
**Post date:** [August 21, 2017, 8:38pm UTC](https://forum.inductiveautomation.com/t/get-custom-property-from-window-template-will-be-placed-on/15126/1 "2017-08-21T20:38:15Z")

</div>

How can I get a property from a window that a template will be placed on into a custom property of the template itself.

Example.  
I create a custom property on the template - cp1  
I also have a custom property on the window the template will be placed on - cp2

from the template editor how do i make sure that when i place the template into the window cp1 will equal whatever cp2 is without me having to manually link them

---

<div class="post-metadata">

**Author:** ![dws2384](https://avatars.discourse-cdn.com/v4/letter/d/df788c/32.png) [@dws2384](https://forum.inductiveautomation.com/u/dws2384)\
**Post date:** [August 21, 2017, 11:16pm UTC](https://forum.inductiveautomation.com/t/get-custom-property-from-window-template-will-be-placed-on/15126/2 "2017-08-21T23:16:45Z")

</div>

nevermind, figured it out. For anyone searching the forums in the future:

property = system.gui.getParentWindow(event).getComponentForPath(‘Root Container’).cp2  
event.source.cp1 = property
