# Disable background user interaction when popup is opened

**URL:** <https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140>\
**Category:** Ignition\
**Tags:** vision\
**Created:** [August 26, 2024, 7:29am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140 "2024-08-26T07:29:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [August 26, 2024, 7:29am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/1 "2024-08-26T07:29:54Z")

</div>

Hi,

I would like to disable background user interaction when a popup is open, similar to how we use the 'modal' property in Perspective.

Any ideas to do this?

---

<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:** [August 26, 2024, 7:55am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/2 "2024-08-26T07:55:25Z")

</div>

Perspective or Vision? You've tagged the question as both.

In general, you make the view **modal**. See the documentation.

---

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [August 26, 2024, 8:43am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/3 "2024-08-26T08:43:47Z")

</div>

Sorry, i have updated now,  
I need it in vision.

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 1, 2024, 8:18am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/4 "2024-11-01T08:18:40Z")

</div>

Looks like I missed this question. I can imagine several approaches that would work such as using a unifying boolean value on a client tag or custom property that the UI components could bind their enabled properties to.

...but by now _[two months later]_, I imagine you've solved this. How did you end up doing it?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 1, 2024, 11:41am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/5 "2024-11-01T11:41:04Z")

</div>

~~Vision also has modal popups.~~

---

<div class="post-metadata">

**Author:** ![jlandwerlen](https://avatars.discourse-cdn.com/v4/letter/j/bc8723/32.png) [@jlandwerlen](https://forum.inductiveautomation.com/u/jlandwerlen)\
**Post date:** [November 1, 2024, 1:06pm UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/6 "2024-11-01T13:06:25Z")

</div>

How do you make the popup modal in Vision?

---

<div class="post-metadata">

**Author:** ![justinedwards.jle](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/justinedwards.jle/32/37854_2.png) [@justinedwards.jle](https://forum.inductiveautomation.com/u/justinedwards.jle)\
**Post date:** [November 1, 2024, 1:10pm UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/7 "2024-11-01T13:10:55Z")

</div>

Most of the system.gui.(popup) options are gui locking.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [November 1, 2024, 1:31pm UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/8 "2024-11-01T13:31:07Z")

</div>

> [@jlandwerlen](#):
>
> How

Hmm. Misremembered. ☹

I recall hacking a window instance by reparenting into a JDialog. It wasn't trivial.

---

<div class="post-metadata">

**Author:** ![Dharani\_T](https://avatars.discourse-cdn.com/v4/letter/d/bc8723/32.png) [@Dharani\_T](https://forum.inductiveautomation.com/u/Dharani_T)\
**Post date:** [November 4, 2024, 4:49am UTC](https://forum.inductiveautomation.com/t/disable-background-user-interaction-when-popup-is-opened/95140/9 "2024-11-04T04:49:52Z")

</div>

Here’s what I did:

Whenever a popup opens, I enable a client tag and set the background transparency to a slightly greyish tone. For any background functionality, I first check if the client tag is enabled; if it is, I ignore the action. When the popup closes, I disable the tag.
