# What does "event.source.disablePopUP " mean?

**URL:** <https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645>\
**Category:** General Discussion\
**Tags:** ignition79\
**Created:** [July 17, 2019, 10:01pm UTC](https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645 "2019-07-17T22:01:28Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![zhailujun123](https://avatars.discourse-cdn.com/v4/letter/z/71c47a/32.png) [@zhailujun123](https://forum.inductiveautomation.com/u/zhailujun123)\
**Post date:** [July 17, 2019, 10:01pm UTC](https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645/1 "2019-07-17T22:01:28Z")

</div>

I was wondering what the below code mean? I can not find in the mannual. Anyone can help me understand this code?  
event.source.disablePopUP

Actually,it was used in a templated event to open a popup window see below:  
if not event.source.disablePopUP:  
param1 = event.source.UDT\_Path  
window = system.nav.openWindow(‘PopUps/Production/PIT\_Details’, {‘UDT\_Path’ : param1})  
system.nav.centerWindow(window)

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [July 17, 2019, 10:07pm UTC](https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645/2 "2019-07-17T22:07:45Z")

</div>

`disablePopUP` is (or was) a custom property - that’s not a built-in component property.

---

<div class="post-metadata">

**Author:** ![witman](https://avatars.discourse-cdn.com/v4/letter/w/d2c977/32.png) [@witman](https://forum.inductiveautomation.com/u/witman)\
**Post date:** [July 18, 2019, 6:37am UTC](https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645/3 "2019-07-18T06:37:54Z")

</div>

> [@zhailujun123](#):
>
> event.source.disablePopUP

As @paul-griffith notes, disablePopUP would be (or have been if it is no longer there) a custom property. `event.source` means the component that is the source of the event, and `disablePopUP` would be a custom property someone created on that component (almost certainly the same component that has this script on it). Custom properties will show in blue at the bottom of the Property Editor when the component is selected, like this:  
 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/2X/9/90998c54aeefe72d87b034c9b6a7f24026090c3a.png)  
They are created by right-clicking on a component and choosing `Customizers->Custom Properties` (or pressing `Ctrl-U`).

In the example you give, it looks like someone set it up to disable the popup in some conditions by setting the custom property `disablePopUP = True`.

---

<div class="post-metadata">

**Author:** ![zhailujun123](https://avatars.discourse-cdn.com/v4/letter/z/71c47a/32.png) [@zhailujun123](https://forum.inductiveautomation.com/u/zhailujun123)\
**Post date:** [July 18, 2019, 1:38pm UTC](https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645/4 "2019-07-18T13:38:27Z")

</div>

Thank you PGriffith! That make sense!

---

<div class="post-metadata">

**Author:** ![zhailujun123](https://avatars.discourse-cdn.com/v4/letter/z/71c47a/32.png) [@zhailujun123](https://forum.inductiveautomation.com/u/zhailujun123)\
**Post date:** [July 18, 2019, 1:39pm UTC](https://forum.inductiveautomation.com/t/what-does-event-source-disablepopup-mean/26645/5 "2019-07-18T13:39:36Z")

</div>

Thank you witman for so detailed information. That is so helpful to me to understand! Appreaciate it!
