# Problem of using a one shot button in a template

**URL:** <https://forum.inductiveautomation.com/t/problem-of-using-a-one-shot-button-in-a-template/32069>\
**Category:** Ignition\
**Created:** [February 8, 2020, 8:41pm UTC](https://forum.inductiveautomation.com/t/problem-of-using-a-one-shot-button-in-a-template/32069 "2020-02-08T20:41:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [February 8, 2020, 8:41pm UTC](https://forum.inductiveautomation.com/t/problem-of-using-a-one-shot-button-in-a-template/32069/1 "2020-02-08T20:41:07Z")

</div>

Hi everyone.  
can you please help me  
I want to use a one-shot button on a template to control a property of a data type, but I can’t achieve it.  
Can someone give me an example. thanks

 ![56](https://us1.discourse-cdn.com/inductiveautomation/original/2X/b/b09065a409085cc7c6d48657610ce9ae3e6627b5.png)

---

<div class="post-metadata">

**Author:** ![camatt3](https://avatars.discourse-cdn.com/v4/letter/c/22d042/32.png) [@camatt3](https://forum.inductiveautomation.com/u/camatt3)\
**Post date:** [February 11, 2020, 1:32am UTC](https://forum.inductiveautomation.com/t/problem-of-using-a-one-shot-button-in-a-template/32069/2 "2020-02-11T01:32:24Z")

</div>

Try binding bi-directionally to a property rather than an expression?

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [February 11, 2020, 12:53pm UTC](https://forum.inductiveautomation.com/t/problem-of-using-a-one-shot-button-in-a-template/32069/3 "2020-02-11T12:53:56Z")

</div>

thanks you. now it’s working.
