# How to open a popup in a "Configure OnClick Script"

**URL:** <https://forum.inductiveautomation.com/t/how-to-open-a-popup-in-a-configure-onclick-script/68708>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 18, 2023, 3:01am UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-in-a-configure-onclick-script/68708 "2023-01-18T03:01:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bharat\_Krishnan](https://avatars.discourse-cdn.com/v4/letter/b/2acd7d/32.png) [@Bharat\_Krishnan](https://forum.inductiveautomation.com/u/Bharat_Krishnan)\
**Post date:** [January 18, 2023, 3:01am UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-in-a-configure-onclick-script/68708/1 "2023-01-18T03:01:39Z")

</div>

I have been trying to open a error popup when the result returns the value "none".  
The error that I am currently facing is :  
"AttributeError: 'com.inductiveautomation.ignition.designer.gui.tool' object has no attribute 'perspective' "  
Am i doing the script wrong? I have also posted the working of the script through script console.

 ![script](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/c/3cf05ba49b6bfe469beab26a5ca153ab0071e076.png)

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [January 18, 2023, 3:10am UTC](https://forum.inductiveautomation.com/t/how-to-open-a-popup-in-a-configure-onclick-script/68708/2 "2023-01-18T03:10:16Z")

</div>

1. Popups may not be opened from the Designer.
2. `system.perspective.openPopup("SomeViewPath",)` is not going to work because you have an extra comma in there.
3. The documentation specifies that the first positional argument will be used as the ID of the Popup, so even after removing the extra comma your argument will be used as the `id` argument.

Assuming `Tank Loading/Popup100` is the actual path to a View resource named `Popup100`, you should use in an actual session.

```auto
system.perspective.openPopup(id="SomeUniqueValue", view="Tank Loading/Popup100")

```
