# Add a control/template in a window at runtime

**URL:** <https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005>\
**Category:** Ignition\
**Created:** [March 10, 2013, 8:13pm UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005 "2013-03-10T20:13:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![DarioC](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@DarioC](https://forum.inductiveautomation.com/u/DarioC)\
**Post date:** [March 10, 2013, 8:13pm UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005/1 "2013-03-10T20:13:34Z")

</div>

We would like to create a window where the user at run can decide which controls/template are displayed.  
We want to mimic the android home screen where you can select the widget to add.  
Is there a way to add and parametrize controls/templates via script?  
If not, is there another way to reach this same functionality?

Thanks in advance,  
Dario

---

<div class="post-metadata">

**Author:** ![greg.simpson](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/greg.simpson/32/3135_2.png) [@greg.simpson](https://forum.inductiveautomation.com/u/greg.simpson)\
**Post date:** [March 11, 2013, 3:29pm UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005/2 "2013-03-11T15:29:10Z")

</div>

You can achieve similar functionality by toggling the visibility of components. There isn’t a way to dynamically add components in the runtime client.

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [April 29, 2014, 3:30pm UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005/3 "2014-04-29T15:30:24Z")

</div>

i heard about a new feature to get this functionality in the latest version.  
is it correct?

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [May 5, 2014, 9:37pm UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005/4 "2014-05-05T21:37:38Z")

</div>

I’ve seen this done with what we have available today. The idea is to model the different controls you want as templates, and then make a screen that is a grid of template instances. Then use whatever mechanism you want to allow the user to control which template is loaded in which spot. Pretty straight-forward, and it’s a graceful way of making the screen dynamic at runtime.

---

<div class="post-metadata">

**Author:** ![marioquark](https://avatars.discourse-cdn.com/v4/letter/m/22d042/32.png) [@marioquark](https://forum.inductiveautomation.com/u/marioquark)\
**Post date:** [May 6, 2014, 7:38am UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005/5 "2014-05-06T07:38:11Z")

</div>

seen done… where? 🙂

---

<div class="post-metadata">

**Author:** ![Carl.Gould](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/carl.gould/32/7262_2.png) [@Carl.Gould](https://forum.inductiveautomation.com/u/Carl.Gould)\
**Post date:** [May 6, 2014, 4:10pm UTC](https://forum.inductiveautomation.com/t/add-a-control-template-in-a-window-at-runtime/6005/6 "2014-05-06T16:10:01Z")

</div>

I was thinking of a presentation that one of our customers did at our Community Conference last year. I’ll have to see if I can send you the materials or not.
