# Bind Event's Enable to property/tag

**URL:** <https://forum.inductiveautomation.com/t/bind-events-enable-to-property-tag/26133>\
**Category:** Ignition Early Access\
**Created:** [June 27, 2019, 10:51am UTC](https://forum.inductiveautomation.com/t/bind-events-enable-to-property-tag/26133 "2019-06-27T10:51:34Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![anguim](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anguim](https://forum.inductiveautomation.com/u/anguim)\
**Post date:** [June 27, 2019, 10:51am UTC](https://forum.inductiveautomation.com/t/bind-events-enable-to-property-tag/26133/1 "2019-06-27T10:51:34Z")

</div>

Hi,

It’s possible to bind the Enable option of an Event Action? Instead of checking with an script in each onMouseDown, I would like to disable the onMouse event action based on a property set on the session startup

Best regards

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [June 27, 2019, 11:26am UTC](https://forum.inductiveautomation.com/t/bind-events-enable-to-property-tag/26133/2 "2019-06-27T11:26:30Z")

</div>

Mouse events work whether the component is enabled or not. It’s the actionPerfomed events that are tied to the enable property.

---

<div class="post-metadata">

**Author:** ![anguim](https://avatars.discourse-cdn.com/v4/letter/a/c0e974/32.png) [@anguim](https://forum.inductiveautomation.com/u/anguim)\
**Post date:** [June 27, 2019, 11:29am UTC](https://forum.inductiveautomation.com/t/bind-events-enable-to-property-tag/26133/3 "2019-06-27T11:29:04Z")

</div>

Yeah, my bad, I want to disable the Script action, not the event itself sorry.

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 27, 2019, 2:06pm UTC](https://forum.inductiveautomation.com/t/bind-events-enable-to-property-tag/26133/4 "2019-06-27T14:06:43Z")

</div>

Enabling/Disabling Actions is not something that can be modified through bindings. In the event there is logic which determines whether a Script Action would execute, that logic should either be in the script itself, or used to determine whether the Event which would invoke the Script Action should even occur (ie: use the logic you would use to determine whether the Script Action should be invoked to determine whether the button should be enabled).
