# Get second popup to come to front?

**URL:** <https://forum.inductiveautomation.com/t/get-second-popup-to-come-to-front/60226>\
**Category:** Ignition\
**Tags:** ignition81, vision\
**Created:** [May 31, 2022, 7:24pm UTC](https://forum.inductiveautomation.com/t/get-second-popup-to-come-to-front/60226 "2022-05-31T19:24:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 31, 2022, 7:24pm UTC](https://forum.inductiveautomation.com/t/get-second-popup-to-come-to-front/60226/1 "2022-05-31T19:24:01Z")

</div>

Have a situation where a very large popup window can open a secondary popup window but it keeps opening up behind it.

I have tried

```auto
system.nav.openWindow('Pop_AddEditUser',params)
system.nav.centerWindow('Pop_AddEditUser')
window = system.gui.getWindow("Pop_AddEditUser")
window.setSelected(1)

```

based on some old posts I’ve seen as well as

```auto
system.nav.openWindow('Pop_AddEditUser',params)
system.nav.centerWindow('Pop_AddEditUser')
x = [win.setSelected(1) for win in system.gui.getOpenedWindows() if win.name=="Pop_AddEditUser"]

```

but neither of these bring the popup that was opened from within the other popup to the front. Not sure what is going wrong. Any ideas how to get the popup to come to the front?

---

<div class="post-metadata">

**Author:** ![JordanCClark](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jordancclark/32/83362_2.png) [@JordanCClark](https://forum.inductiveautomation.com/u/JordanCClark)\
**Post date:** [May 31, 2022, 7:29pm UTC](https://forum.inductiveautomation.com/t/get-second-popup-to-come-to-front/60226/2 "2022-05-31T19:29:52Z")

</div>

The Layer property should help.  
[https://docs.inductiveautomation.com/display/DOC81/Popup+Windows#PopupWindows-Layer](https://docs.inductiveautomation.com/display/DOC81/Popup+Windows#PopupWindows-Layer)

---

<div class="post-metadata">

**Author:** ![bkarabinchak.psi](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bkarabinchak.psi/32/83567_2.png) [@bkarabinchak.psi](https://forum.inductiveautomation.com/u/bkarabinchak.psi)\
**Post date:** [May 31, 2022, 7:31pm UTC](https://forum.inductiveautomation.com/t/get-second-popup-to-come-to-front/60226/3 "2022-05-31T19:31:14Z")

</div>

That does it with no scripting required. Thanks!
