# Perspective Push button Visibility based on Tag Value

**URL:** <https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [October 4, 2024, 7:55pm UTC](https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848 "2024-10-04T19:55:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ronne\_Abat](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Ronne\_Abat](https://forum.inductiveautomation.com/u/Ronne_Abat)\
**Post date:** [October 4, 2024, 7:55pm UTC](https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848/1 "2024-10-04T19:55:56Z")

</div>

I'm trying to get a push button to be visible for a Indirect Tag for P1...P5

NKWSD.P100.Mtr.Cntrl.MStrt = 50 then the Start and Stop PB is visible  
NKWSD.P100.Mtr.Cntrl.MStrt = 100 then the Start and Stop PB is NOT Visible

However the Visible on the Meta tab does not have a why to set visibility based on a indirect tag value. In Vision there is a gui that allows you pick and set tag values.

 ![Example](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1c94d67369bb3ed0a947d3621a4da2f5c23edb6a.jpeg)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 4, 2024, 8:07pm UTC](https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848/2 "2024-10-04T20:07:14Z")

</div>

> [@Ronne\_Abat](#):
>
> not have a why to set visibility based on a indirect tag value

It absolutely does, select the `Tag` option in the binding type. There is an option in there to make it an indirect binding.

> **[Tag Bindings in Perspective | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/bindings-in-perspective/tag-bindings-in-perspective)**
>
> A Tag binding is a straight-forward binding type. It simply binds a property directly to a Tag Property (typically the value). This sets up a subscription for that Tag. Every time the chosen Tag changes, the binding is evaluated and pushes the new...

> **[Transforms | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/working-with-perspective-components/bindings-in-perspective/transforms)**
>
> Transforms offer a chance to alter the value returned from a binding. For example, you can bind a property to an integer value and use a transform to map the numerical value to a particular color, all from the same interface.

---

<div class="post-metadata">

**Author:** ![Ronne\_Abat](https://avatars.discourse-cdn.com/v4/letter/r/71c47a/32.png) [@Ronne\_Abat](https://forum.inductiveautomation.com/u/Ronne_Abat)\
**Post date:** [October 4, 2024, 8:29pm UTC](https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848/3 "2024-10-04T20:29:15Z")

</div>

Sorry maybe I was not clear.  
The Indirect Tag I'm using for visibility is an Integer  
The Visible attribute for the button is set to 1 when Indirect Tag Value = 50.

My scripting in perspective is not strong I'm not sure how to make this happen.

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [October 4, 2024, 8:34pm UTC](https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848/4 "2024-10-04T20:34:11Z")

</div>

Pull the value of `NKWSD.P100.Mtr.Cntrl.MStrt` into a custom property on the root container of the view with an indirect binding, if you haven't already.

Make another custom property called `showStartStop` or similar. Add a binding to this property with an expression along the lines of `{path.to.Mstart.value} = 50`. Replace `{path.to.Mstart.value}` with the actual path to the custom property holding the value of `NKWSD.P100.Mtr.Cntrl.MStrt`

Then, bind your start and stop buttons' `meta.visible` property to the `showStartStop` property on the root container.

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [October 5, 2024, 12:20am UTC](https://forum.inductiveautomation.com/t/perspective-push-button-visibility-based-on-tag-value/96848/5 "2024-10-05T00:20:33Z")

</div>

You've tagged the question as both Perspective and Vision. It seems to be Perspective only.
