# Tag Event Script Not Firing If Edited from Tag Editor Popup Window

**URL:** <https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545>\
**Category:** Ignition\
**Created:** [December 20, 2018, 7:14pm UTC](https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545 "2018-12-20T19:14:57Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [December 20, 2018, 7:14pm UTC](https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545/1 "2018-12-20T19:14:57Z")

</div>

I have a tag event script that will not fire if I right-click and open the Tag Editor, then change the tags value.  
 ![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/a/adc20a050d4ce643ae3803c086b26c94bab8830a.png)

But if I double-click the area highlighted in pink below, and edit the tags value that way, the tag event script will run just fine.

![](https://us1.discourse-cdn.com/inductiveautomation/original/2X/7/7ce19823bac8d934c41b2ad2a75157c51eb8245c.png)

Is this a bug or a misunderstanding on my part?

---

<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:** [December 20, 2018, 7:33pm UTC](https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545/2 "2018-12-20T19:33:21Z")

</div>

What’s the logic in your script? Are you filtering out the `initialChange` flag?

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [December 20, 2018, 7:44pm UTC](https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545/3 "2018-12-20T19:44:17Z")

</div>

I’m not filtering out the `initialChange` flag.

```
log = system.util.getLogger("System Name Tag Event: ")
startLogging = True

FN,junk = tagPath.split('/',1)
SN = currentValue.value
SP = FN+'/'+SN

if (startLogging):
	log.info("SP = %s" % (SP))
tags = system.tag.browseTags(parentPath = SP,recursive = True)
tagPaths = []
for tag in tags:
	if tag.isUDT():
		tagPaths.append(tag.path)
system.tag.editTags(tagPaths = tagPaths, parameters={'Unit':SN})
```

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [December 20, 2018, 7:49pm UTC](https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545/4 "2018-12-20T19:49:45Z")

</div>

Igntion Version 7.9.9

---

<div class="post-metadata">

**Author:** ![bvaldovinos](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/bvaldovinos/32/6315_2.png) [@bvaldovinos](https://forum.inductiveautomation.com/u/bvaldovinos)\
**Post date:** [January 3, 2019, 10:12pm UTC](https://forum.inductiveautomation.com/t/tag-event-script-not-firing-if-edited-from-tag-editor-popup-window/21545/5 "2019-01-03T22:12:46Z")

</div>

Now that I’ve thought about this for some time, I think this behavior makes sense. When opening the tag-editor, I’m essentially “creating” the tag. I could make lots of changes that affect the underlying behavior of the tag itself. It makes sense that a tag-event wouldn’t fire in this situation because several things may have been adjusted.
