# State based template swapping

**URL:** <https://forum.inductiveautomation.com/t/state-based-template-swapping/41283>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [December 8, 2020, 12:12am UTC](https://forum.inductiveautomation.com/t/state-based-template-swapping/41283 "2020-12-08T00:12:59Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![sathianandan.dharmas](https://avatars.discourse-cdn.com/v4/letter/s/53a042/32.png) [@sathianandan.dharmas](https://forum.inductiveautomation.com/u/sathianandan.dharmas)\
**Post date:** [December 8, 2020, 12:12am UTC](https://forum.inductiveautomation.com/t/state-based-template-swapping/41283/1 "2020-12-08T00:12:59Z")

</div>

Hi All,  
I want to swap between two identical (in size) templates based on states (custom property on the main window). Which option would you suggest?

- Create a template on the main window and swap between the two through the template path property (expression binding)

- Place one on top of another and use the visibility property to make the templates appear/disapper based on the states

Performance-wise, would it be an issue to go with the second option? Also, I have different custom properties for both. If there is a better option I’m all ears. TIA.
