# Disable button according to tag value

**URL:** <https://forum.inductiveautomation.com/t/disable-button-according-to-tag-value/23316>\
**Category:** Ignition\
**Created:** [March 13, 2019, 9:29pm UTC](https://forum.inductiveautomation.com/t/disable-button-according-to-tag-value/23316 "2019-03-13T21:29:38Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![bchristenson](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bchristenson](https://forum.inductiveautomation.com/u/bchristenson)\
**Post date:** [March 13, 2019, 9:29pm UTC](https://forum.inductiveautomation.com/t/disable-button-according-to-tag-value/23316/1 "2019-03-13T21:29:38Z")

</div>

Hi,

Is there an easy way to enable/ disable buttons according to a tag value?

In my case if a CIP process is on (So this tag value is 1) I want certain buttons to be disabled until this process is done and the tag value is 0 again.

I know there is an enable checkbox with true or false values but if i link my tag directly to this it only works in one way and i need the logic to be the other way around and can’t figure that out.

---

<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:** [March 13, 2019, 9:32pm UTC](https://forum.inductiveautomation.com/t/disable-button-according-to-tag-value/23316/2 "2019-03-13T21:32:13Z")

</div>

Use an expression binding with a boolean not (the exclamation point) and your tag reference. Something like this:

```auto
!{[myTagProvider]some/path/to/a/tag}

```

---

<div class="post-metadata">

**Author:** ![bchristenson](https://avatars.discourse-cdn.com/v4/letter/b/ecccb3/32.png) [@bchristenson](https://forum.inductiveautomation.com/u/bchristenson)\
**Post date:** [March 13, 2019, 9:35pm UTC](https://forum.inductiveautomation.com/t/disable-button-according-to-tag-value/23316/3 "2019-03-13T21:35:55Z")

</div>

Thank you so much! I know it’s something little but if you don’t know it you can look for it for quite a while! haha

---

<div class="post-metadata">

**Author:** ![ashwin.kandavalli](https://avatars.discourse-cdn.com/v4/letter/a/f17d59/32.png) [@ashwin.kandavalli](https://forum.inductiveautomation.com/u/ashwin.kandavalli)\
**Post date:** [June 20, 2020, 1:40am UTC](https://forum.inductiveautomation.com/t/disable-button-according-to-tag-value/23316/4 "2020-06-20T01:40:48Z")

</div>

Can we disable a button after acknowledging particular alert in alarm status table and it should enable for alarms which are not acknowledged
