# Visible menu items

**URL:** <https://forum.inductiveautomation.com/t/visible-menu-items/79034>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [September 12, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034 "2023-09-12T18:16:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![pbg](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pbg](https://forum.inductiveautomation.com/u/pbg)\
**Post date:** [September 12, 2023, 6:16pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/1 "2023-09-12T18:16:36Z")

</div>

Hi,

I have a binding that alters visible param on Menu Tree items, does the visible param really only work on the root item of the menu tree? I want to alter the visibility on children items, I was hoping there would be an easier was than removing the items, is there a better way to do this?

Thanks

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [September 12, 2023, 7:12pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/2 "2023-09-12T19:12:53Z")

</div>

Use the "visible" property under props.items[0].visible for each items in the tree.

---

<div class="post-metadata">

**Author:** ![pbg](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pbg](https://forum.inductiveautomation.com/u/pbg)\
**Post date:** [September 13, 2023, 1:18pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/3 "2023-09-13T13:18:55Z")

</div>

Not sure, I try `value[1].items[0].visible = False` and that throws an error which leads me to believe that not all the menu items have the property 'visible'

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/e/e/ee8ede7fc7ae10e87cb4a663db1003984de82ac8.png)

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [September 13, 2023, 1:29pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/4 "2023-09-13T13:29:03Z")

</div>

Use the property selector on the side of the script window to get the right path to that property. Depending on where your script is being called from is going to change the way you actually get that reference to the visible property.

For example,

```auto
self.getChild("root").getChild("MenuTree").props.items[0].visible = False

```

---

<div class="post-metadata">

**Author:** ![pbg](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pbg](https://forum.inductiveautomation.com/u/pbg)\
**Post date:** [September 13, 2023, 1:39pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/5 "2023-09-13T13:39:22Z")

</div>

My only issue is that it doesn't do anything, the first item in Production is still showing up even though visible is false.

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/d/8/d89deb0e82391f22c1327d76b10ed0628b1ecea1.png)

---

<div class="post-metadata">

**Author:** ![kyler.kamyszek](https://avatars.discourse-cdn.com/v4/letter/k/a4c791/32.png) [@kyler.kamyszek](https://forum.inductiveautomation.com/u/kyler.kamyszek)\
**Post date:** [September 13, 2023, 2:29pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/6 "2023-09-13T14:29:49Z")

</div>

Your parent menu item isn't expanded in your screen shot, so you probably aren't seeing the changes. Are you sure you're looking at the view correctly when changing the visible status?

---

<div class="post-metadata">

**Author:** ![pbg](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@pbg](https://forum.inductiveautomation.com/u/pbg)\
**Post date:** [September 13, 2023, 2:53pm UTC](https://forum.inductiveautomation.com/t/visible-menu-items/79034/7 "2023-09-13T14:53:52Z")

</div>

Yes. I can see everything, I get these errors - I just think the visible property isn't available for children items. I doubt it's just me?

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/6/8/6896a6ee42bc55c6770d57fa7d8b8d8d6c8fcd9e.png)
