# Hide button component on embedded view that is an a view that is also embedded in another view

**URL:** <https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [March 26, 2025, 1:28pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231 "2025-03-26T13:28:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![steve.nap](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steve.nap](https://forum.inductiveautomation.com/u/steve.nap)\
**Post date:** [March 26, 2025, 1:28pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231/1 "2025-03-26T13:28:04Z")

</div>

Hi, I have an embedded view (View 1) that is in a view (View 2) that is also embedded in another view (View 3).

So View 3 has View 2 embedded and View 2 has View 1 embedded.

I'd like to hide a button on View 1. View 1 is used in other views that need the button.

I tried some scripts and can't seem to get it to work.

Any help or guidance would be greatly appreciated.

Thank you.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 26, 2025, 1:32pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231/2 "2025-03-26T13:32:54Z")

</div>

Is the button always hidden when embedded in this scenario, or is there some trigger that should result in the button being hidden? If there is a trigger, at what level is that trigger initiated?

---

<div class="post-metadata">

**Author:** ![steve.nap](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steve.nap](https://forum.inductiveautomation.com/u/steve.nap)\
**Post date:** [March 26, 2025, 1:40pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231/3 "2025-03-26T13:40:42Z")

</div>

Hi. At the moment it is visible and functional. It works in the other view that needs the button. I actually do not have any code written. I thought maybe a startup script could help me hide the button on the view it needs to be hidden on.

Any suggestions to look into or a code sample would be appreciated; meaning "don't use a script" or "use a trigger (not sure what that means but I can investigate)"

I appreciate your timely response.

---

<div class="post-metadata">

**Author:** ![steve.nap](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steve.nap](https://forum.inductiveautomation.com/u/steve.nap)\
**Post date:** [March 26, 2025, 1:42pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231/4 "2025-03-26T13:42:00Z")

</div>

There is no trigger. The view just does not need the button. The button actually displays the same view in another view so that's why it is not needed.

---

<div class="post-metadata">

**Author:** ![lrose](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lrose/32/62724_2.png) [@lrose](https://forum.inductiveautomation.com/u/lrose)\
**Post date:** [March 26, 2025, 1:47pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231/5 "2025-03-26T13:47:03Z")

</div>

On the view where the button needs to be optionally hidden, bind the visibility to an input parameter. When embedded on a view where the button is not needed set the parameter to 0. In this way each instance of the embedded view can be configured individually for your needs.

> **[Embedded Views | Ignition User Manual](https://www.docs.inductiveautomation.com/docs/8.1/ignition-modules/perspective/views-in-perspective/embedded-views)**
>
> An embedded view is an instance of a view that is used as a component within another view. Similar to how containers can be added inside another container. An embedded view in Perspective is actually created using the Embedded View component, which...

---

<div class="post-metadata">

**Author:** ![steve.nap](https://avatars.discourse-cdn.com/v4/letter/s/5daacb/32.png) [@steve.nap](https://forum.inductiveautomation.com/u/steve.nap)\
**Post date:** [March 26, 2025, 2:01pm UTC](https://forum.inductiveautomation.com/t/hide-button-component-on-embedded-view-that-is-an-a-view-that-is-also-embedded-in-another-view/104231/6 "2025-03-26T14:01:52Z")

</div>

Thank you very much.
