# \[SOLVED\] How to limit user clicking a button on the screen?

**URL:** <https://forum.inductiveautomation.com/t/solved-how-to-limit-user-clicking-a-button-on-the-screen/38808>\
**Category:** Ignition\
**Created:** [September 17, 2020, 7:22pm UTC](https://forum.inductiveautomation.com/t/solved-how-to-limit-user-clicking-a-button-on-the-screen/38808 "2020-09-17T19:22:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [September 17, 2020, 7:22pm UTC](https://forum.inductiveautomation.com/t/solved-how-to-limit-user-clicking-a-button-on-the-screen/38808/1 "2020-09-17T19:22:34Z")

</div>

Good afternoon,

Is there a way to limit a user clicking a button on the screen to some arbitrary amount?

---

<div class="post-metadata">

**Author:** ![dkhayes117](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dkhayes117/32/68344_2.png) [@dkhayes117](https://forum.inductiveautomation.com/u/dkhayes117)\
**Post date:** [September 17, 2020, 7:26pm UTC](https://forum.inductiveautomation.com/t/solved-how-to-limit-user-clicking-a-button-on-the-screen/38808/2 "2020-09-17T19:26:25Z")

</div>

You could create a custom property on the button and increment the value each time the button is clicked. You then can check this value before running any more scripts

---

<div class="post-metadata">

**Author:** ![bmeyers](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bmeyers/32/37453_2.png) [@bmeyers](https://forum.inductiveautomation.com/u/bmeyers)\
**Post date:** [September 17, 2020, 7:41pm UTC](https://forum.inductiveautomation.com/t/solved-how-to-limit-user-clicking-a-button-on-the-screen/38808/3 "2020-09-17T19:41:02Z")

</div>

Good idea… this seems to have worked from my side of things. I’ll have to see if the user can break it again 🙂
