# Button not working

**URL:** <https://forum.inductiveautomation.com/t/button-not-working/55331>\
**Category:** Ignition\
**Created:** [January 24, 2022, 11:40pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331 "2022-01-24T23:40:43Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://forum.inductiveautomation.com/u/blueberry)\
**Post date:** [January 24, 2022, 11:40pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/1 "2022-01-24T23:40:43Z")

</div>

Hi I am having issues with all types of button (one shot, momentary, toggle…).  
I made a simple toggle button and bind an opc tag to it. When pressed, I did not see any changes to the PLC, but if I used a script, then it worked. Can someone help please? Yes, I did tried with different button types, results were the same. They only worked when scripted.

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [January 24, 2022, 11:43pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/2 "2022-01-24T23:43:05Z")

</div>

Are you project comm settings set to read/write?

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://forum.inductiveautomation.com/u/blueberry)\
**Post date:** [January 24, 2022, 11:45pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/3 "2022-01-24T23:45:44Z")

</div>

Yes, comm is set to read and write

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [January 24, 2022, 11:48pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/4 "2022-01-24T23:48:16Z")

</div>

Could you have something else writing to the same tag, either in your PLC or ignition project?  
Also, which event handler are you using?

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://forum.inductiveautomation.com/u/blueberry)\
**Post date:** [January 24, 2022, 11:50pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/5 "2022-01-24T23:50:45Z")

</div>

No, only the OPC tag from Ignition can write to this PLC tag.  
What do you mean by event handler?

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [January 24, 2022, 11:52pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/6 "2022-01-24T23:52:16Z")

</div>

This is one of my buttons that fires on a mouse release.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1ce66b19fa5deca5ce4d01601b4a88ad182226fa.png)

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://forum.inductiveautomation.com/u/blueberry)\
**Post date:** [January 24, 2022, 11:52pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/7 "2022-01-24T23:52:26Z")

</div>

I only use the event handler in the script, which worked. I like to use the button without writing the scripts. Where can i find this event handler without the script?

---

<div class="post-metadata">

**Author:** ![josborn](https://avatars.discourse-cdn.com/v4/letter/j/4bbf92/32.png) [@josborn](https://forum.inductiveautomation.com/u/josborn)\
**Post date:** [January 24, 2022, 11:53pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/8 "2022-01-24T23:53:48Z")

</div>

Pick an event, then use the Set Tag Value option.

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://forum.inductiveautomation.com/u/blueberry)\
**Post date:** [January 24, 2022, 11:54pm UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/9 "2022-01-24T23:54:55Z")

</div>

so… I have to use the scripting component no matter what?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [January 25, 2022, 12:03am UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/10 "2022-01-25T00:03:47Z")

</div>

No, you can use bindings. Most likely you are missing “bidirectional” in your binding.

---

<div class="post-metadata">

**Author:** ![blueberry](https://avatars.discourse-cdn.com/v4/letter/b/54ee81/32.png) [@blueberry](https://forum.inductiveautomation.com/u/blueberry)\
**Post date:** [January 25, 2022, 12:10am UTC](https://forum.inductiveautomation.com/t/button-not-working/55331/11 "2022-01-25T00:10:08Z")

</div>

Yes, I did, thank you !
