# Popup not appearing using scripting

**URL:** <https://forum.inductiveautomation.com/t/popup-not-appearing-using-scripting/66316>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [November 9, 2022, 7:48pm UTC](https://forum.inductiveautomation.com/t/popup-not-appearing-using-scripting/66316 "2022-11-09T19:48:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Tyler\_Folsom](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tyler\_Folsom](https://forum.inductiveautomation.com/u/Tyler_Folsom)\
**Post date:** [November 9, 2022, 7:48pm UTC](https://forum.inductiveautomation.com/t/popup-not-appearing-using-scripting/66316/1 "2022-11-09T19:48:43Z")

</div>

Hello, I am having trouble with getting a popup to display.  
I have a created a page for users to enter data then press a button upon completion.  
Depending on the data entered, I require a popup window to appear. I cannot figure out why I am having trouble with this step.

The popup window "TicketError" exists in the Popups folder.

 ![Screen Shot 2022-11-09 at 1.44.16 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/2/9/29696ff7e41a69ead093bb67da76ed656e9dfe62.png)

The popup is getting called because I have print statements before and after it.  
system.perspective.print(message="Before", destination="all")  
system.perspective.openPopup("tt\_error", "Popups/TicketError")  
system.perspective.print(message="After", destination="all")

 ![Screen Shot 2022-11-09 at 1.44.48 PM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/489a4999878f5226fc405a54fe5e3cfbdf123fc1.png)

Please help me determine what I am missing.

---

<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:** [November 10, 2022, 6:44am UTC](https://forum.inductiveautomation.com/t/popup-not-appearing-using-scripting/66316/2 "2022-11-10T06:44:48Z")

</div>

It looks fine.

Just to confirm, are you testing this in a real session from a browser/workstation? The popup will not appear in the designer.

---

<div class="post-metadata">

**Author:** ![Tyler\_Folsom](https://avatars.discourse-cdn.com/v4/letter/t/8797f3/32.png) [@Tyler\_Folsom](https://forum.inductiveautomation.com/u/Tyler_Folsom)\
**Post date:** [November 14, 2022, 9:22pm UTC](https://forum.inductiveautomation.com/t/popup-not-appearing-using-scripting/66316/3 "2022-11-14T21:22:42Z")

</div>

That makes sense. I knew it had to be something simple I overlooked. Thank you!  
I am working only in the designer in preview mode.
