# Property change script on template

**URL:** <https://forum.inductiveautomation.com/t/property-change-script-on-template/20020>\
**Category:** Ignition\
**Tags:** ignition79, scripting\
**Created:** [October 8, 2018, 6:55am UTC](https://forum.inductiveautomation.com/t/property-change-script-on-template/20020 "2018-10-08T06:55:06Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![edwinnch](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@edwinnch](https://forum.inductiveautomation.com/u/edwinnch)\
**Post date:** [October 8, 2018, 6:55am UTC](https://forum.inductiveautomation.com/t/property-change-script-on-template/20020/1 "2018-10-08T06:55:06Z")

</div>

Hi,

I have written a write to tag script under the property change script of a template when one of the template parameter (which is an input text field) changed.

However, when i run in client mode, it does not trigger the property change at all. And when in preview mode, if i clicked onto the input text field box to key in some texts, it also doesn’t trigger the changes.

It only worked in preview mode if i change it in the property editor.

Please help!

---

<div class="post-metadata">

**Author:** ![nick.schuetz](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nick.schuetz/32/6160_2.png) [@nick.schuetz](https://forum.inductiveautomation.com/u/nick.schuetz)\
**Post date:** [October 8, 2018, 2:37pm UTC](https://forum.inductiveautomation.com/t/property-change-script-on-template/20020/2 "2018-10-08T14:37:22Z")

</div>

If the text box is trying to change a parameter on the template level, make sure the bindings are bi-directional and the property change script is at the template level.

---

<div class="post-metadata">

**Author:** ![edwinnch](https://avatars.discourse-cdn.com/v4/letter/e/ecae2f/32.png) [@edwinnch](https://forum.inductiveautomation.com/u/edwinnch)\
**Post date:** [October 9, 2018, 6:33am UTC](https://forum.inductiveautomation.com/t/property-change-script-on-template/20020/3 "2018-10-09T06:33:55Z")

</div>

Thanks nick.

Missing checking onto the bi-directional.

It works now!

Cheers!
