# Using a button to trigger a tag

**URL:** <https://forum.inductiveautomation.com/t/using-a-button-to-trigger-a-tag/77783>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [August 13, 2023, 3:46am UTC](https://forum.inductiveautomation.com/t/using-a-button-to-trigger-a-tag/77783 "2023-08-13T03:46:41Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ryan\_Tietsort](https://avatars.discourse-cdn.com/v4/letter/r/aeb1de/32.png) [@Ryan\_Tietsort](https://forum.inductiveautomation.com/u/Ryan_Tietsort)\
**Post date:** [August 13, 2023, 3:46am UTC](https://forum.inductiveautomation.com/t/using-a-button-to-trigger-a-tag/77783/1 "2023-08-13T03:46:41Z")

</div>

Wondering what people use to trigger a tag with a script. I want to use a button component to turn a plc tag on and off. I've been using a NOT script to look at the last state of the tag and change it.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [August 13, 2023, 3:59am UTC](https://forum.inductiveautomation.com/t/using-a-button-to-trigger-a-tag/77783/2 "2023-08-13T03:59:25Z")

</div>

A tag binding….? A script should really be your last choice. Unless of course you’re referring to an expression as a script but that isn’t the same thing at all.

Seriously though, why not a tag binding?

NOTE: There are very good reasons why Perspective doesn’t have a momentary push button object. If this is for some type of control you should probably reconsider your approach.

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [August 13, 2023, 8:24am UTC](https://forum.inductiveautomation.com/t/using-a-button-to-trigger-a-tag/77783/3 "2023-08-13T08:24:38Z")

</div>

If you have a boolean tag and want to change its value... a bidirectional tag binding on a checkbox seems to be a pretty solid option.
