# Hide menu bar on header if screen open

**URL:** <https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738>\
**Category:** General Discussion\
**Created:** [January 24, 2013, 3:38pm UTC](https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738 "2013-01-24T15:38:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [January 24, 2013, 3:38pm UTC](https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738/1 "2013-01-24T15:38:10Z")

</div>

I have a menu bar on the header with buttons leading to other windows. I want these buttons on the header to only be enabled if the home screen is open and disabled otherwise. I’ve tried different ways but I can’t get it to work correctly. I tried this expression in the ‘enabled’ property of the button: system.nav.getCurrentWindow() = “HomeScreen”  
This did not work.Any suggestions on how to do this?  
Thanks

---

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [January 24, 2013, 3:44pm UTC](https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738/2 "2013-01-24T15:44:38Z")

</div>

I meant to post this in the ignition design help forum…

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 24, 2013, 4:15pm UTC](https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738/3 "2013-01-24T16:15:51Z")

</div>

The expression should be like this:`{[System]Client/User/CurrentWindow} = "HomeScreen"`

---

<div class="post-metadata">

**Author:** ![rcorkern](https://avatars.discourse-cdn.com/v4/letter/r/90db22/32.png) [@rcorkern](https://forum.inductiveautomation.com/u/rcorkern)\
**Post date:** [January 25, 2013, 2:21pm UTC](https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738/4 "2013-01-25T14:21:46Z")

</div>

ok. how would the syntax be say if i wanted to include several other screens as well? ie: Alert\_Overview, Devices, etc…

---

<div class="post-metadata">

**Author:** ![Travis.Cox](https://avatars.discourse-cdn.com/v4/letter/t/b9bd4f/32.png) [@Travis.Cox](https://forum.inductiveautomation.com/u/Travis.Cox)\
**Post date:** [January 25, 2013, 6:49pm UTC](https://forum.inductiveautomation.com/t/hide-menu-bar-on-header-if-screen-open/5738/5 "2013-01-25T18:49:46Z")

</div>

Here you go:`{[System]Client/User/CurrentWindow} = "HomeScreen" || {[System]Client/User/CurrentWindow} = "AnotherWindow"`
