# Perspective Script - Popup Relative Position

**URL:** <https://forum.inductiveautomation.com/t/perspective-script-popup-relative-position/71024>\
**Category:** Ignition\
**Tags:** scripting, perspective, ignition81\
**Created:** [March 14, 2023, 1:44pm UTC](https://forum.inductiveautomation.com/t/perspective-script-popup-relative-position/71024 "2023-03-14T13:44:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 14, 2023, 1:44pm UTC](https://forum.inductiveautomation.com/t/perspective-script-popup-relative-position/71024/1 "2023-03-14T13:44:54Z")

</div>

I have a popup that is opening via scripting that I'd like to open in a relative position, the same as selecting the relative option on the action configuration popup. How can this be accomplished?

This is where it would be handy to have that ["action to script" functionality.](https://forum.inductiveautomation.com/t/ign-7345-allow-right-clicking-of-event-configurations-with-convert-to-script-event-option/70884)

---

<div class="post-metadata">

**Author:** ![deon.korb](https://avatars.discourse-cdn.com/v4/letter/d/8c91f0/32.png) [@deon.korb](https://forum.inductiveautomation.com/u/deon.korb)\
**Post date:** [March 14, 2023, 1:46pm UTC](https://forum.inductiveautomation.com/t/perspective-script-popup-relative-position/71024/2 "2023-03-14T13:46:33Z")

</div>

> [@Relative Popup Perspective Via Script](https://forum.inductiveautomation.com/t/relative-popup-perspective-via-script/32245/6):
>
> No, relative positioning was never added to the popup functions.

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 14, 2023, 2:27pm UTC](https://forum.inductiveautomation.com/t/perspective-script-popup-relative-position/71024/3 "2023-03-14T14:27:23Z")

</div>

Thanks. Is there a way to enable/disable configured events based on a tag value?

---

<div class="post-metadata">

**Author:** ![amarks](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amarks/32/45610_2.png) [@amarks](https://forum.inductiveautomation.com/u/amarks)\
**Post date:** [March 14, 2023, 6:26pm UTC](https://forum.inductiveautomation.com/t/perspective-script-popup-relative-position/71024/4 "2023-03-14T18:26:04Z")

</div>

I was doing this on a multi-state button, so I just used the `onActionPerformed` configurator to configure a popup to open in a relative position.

Then, to "disable" the popup, I duplicated the multi-state button. It looks like the popup is disabled, but really the multi-state button is replaced entirely with one that does not have a popup.
