# Disable a view when a popup is opened

**URL:** <https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324>\
**Category:** Ignition\
**Tags:** perspective, ignition81\
**Created:** [July 13, 2023, 1:53pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324 "2023-07-13T13:53:56Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Namya](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Namya](https://forum.inductiveautomation.com/u/Namya)\
**Post date:** [July 13, 2023, 1:53pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324/1 "2023-07-13T13:53:56Z")

</div>

Help please!

How can I disable a view or specific buttons when a popup is opened?

---

<div class="post-metadata">

**Author:** ![Usman\_Ashraf](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/usman_ashraf/32/43168_2.png) [@Usman\_Ashraf](https://forum.inductiveautomation.com/u/Usman_Ashraf)\
**Post date:** [July 13, 2023, 2:36pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324/2 "2023-07-13T14:36:09Z")

</div>

Hey @Namya

Multiple options:

1. Disable the actual components, on the same trigger which opens popup.
2. Apply an overlay with higher Z-index so that it falls between the view and the popup. That will block the clicks.
3. When invoking popup, keep `draggable = False`, `resizable = False`, `modal = True`, `overlayDismiss = False`

---

<div class="post-metadata">

**Author:** ![Namya](https://avatars.discourse-cdn.com/v4/letter/n/bbe5ce/32.png) [@Namya](https://forum.inductiveautomation.com/u/Namya)\
**Post date:** [July 13, 2023, 2:56pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324/3 "2023-07-13T14:56:24Z")

</div>

Thanks!!!

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [July 13, 2023, 10:33pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324/4 "2023-07-13T22:33:01Z")

</div>

> [@Usman\_Ashraf](#):
>
> Disable the actual components, on the same trigger which opens popup.

By using a binding. Don't use a script to do this since you will likely get out of sync and end up with disabled components when they should have been enabled

But, as Transistor said, easiest most foolproof way is to use modal

---

<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:** [July 13, 2023, 10:35pm UTC](https://forum.inductiveautomation.com/t/disable-a-view-when-a-popup-is-opened/76324/5 "2023-07-13T22:35:36Z")

</div>

Making the popup modal will prevent access to the calling view's input components until the popup is closed.
