# Intercept checkbox action

**URL:** <https://forum.inductiveautomation.com/t/intercept-checkbox-action/3161>\
**Category:** Ignition\
**Created:** [August 6, 2011, 7:39pm UTC](https://forum.inductiveautomation.com/t/intercept-checkbox-action/3161 "2011-08-06T19:39:15Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![denji26](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/denji26/32/5805_2.png) [@denji26](https://forum.inductiveautomation.com/u/denji26)\
**Post date:** [August 6, 2011, 7:39pm UTC](https://forum.inductiveautomation.com/t/intercept-checkbox-action/3161/1 "2011-08-06T19:39:15Z")

</div>

Is it possible to intercept a user checking a checkbox so I can do some magic before deciding if the checkbox should be checked or not?

If I write a script on actionPerformed, it still checks the box no matter how I try and prevent it.

Thanks!

---

<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:** [August 9, 2011, 5:26pm UTC](https://forum.inductiveautomation.com/t/intercept-checkbox-action/3161/2 "2011-08-09T17:26:24Z")

</div>

Would you be able to check conditions beforehand and toggle the enable of the checkbox accordingly?

---

<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:** [August 9, 2011, 7:05pm UTC](https://forum.inductiveautomation.com/t/intercept-checkbox-action/3161/3 "2011-08-09T19:05:47Z")

</div>

[Quick video](http://www.youtube.com/watch?v=yT32oznFh7k) on accomplishing through scripting (a la original post).
