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

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.

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?

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.

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.

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.

1 Like

Thank you very much.