# \[Bug-12687\] Creating/Modifying Component.CUSTOM Property Keys Fires Change Scripts

**URL:** <https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448>\
**Category:** Ignition Early Access\
**Created:** [February 8, 2019, 7:49pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448 "2019-02-08T19:49:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Phil\_B](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Phil\_B](https://forum.inductiveautomation.com/u/Phil_B)\
**Post date:** [February 8, 2019, 7:49pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/1 "2019-02-08T19:49:37Z")

</div>

I am curious what triggers the change script on properties in Perspective? I noticed today that a change script ran on a custom property when i tried to add a new custom property to the same component. Is this intended or possibly a bug?

---

<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:** [February 8, 2019, 8:58pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/2 "2019-02-08T20:58:47Z")

</div>

That would not be something we intend; propertyChange scripts should only execute when the property **value** changes.

Would you be okay with supplying the View in question?

---

<div class="post-metadata">

**Author:** ![Phil\_B](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Phil\_B](https://forum.inductiveautomation.com/u/Phil_B)\
**Post date:** [February 8, 2019, 9:06pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/3 "2019-02-08T21:06:16Z")

</div>

[PerspectiveTest\_2019-02-08\_1601.zip](https://us1.discourse-cdn.com/inductiveautomation/original/2X/8/87e3d07be09a98ab9c979f599937317720a1be8c.zip) (4.3 KB)

I attached a copy of the view. one of the custom properties on the root was bound to a session custom property so i removed the binding.

When I noticed this, I was writing the change script on the “Info” custom property. it pushes properties to the other labels in the view. When i got it working, i went to add another custom property and noticed that the label values and colors updated.

---

<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:** [February 8, 2019, 9:46pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/4 "2019-02-08T21:46:34Z")

</div>

I was easily able to replicate the issue on my end and have opened an internal ticket. Thank you for bringing this to our attention!

---

<div class="post-metadata">

**Author:** ![Phil\_B](https://avatars.discourse-cdn.com/v4/letter/p/c89c15/32.png) [@Phil\_B](https://forum.inductiveautomation.com/u/Phil_B)\
**Post date:** [February 8, 2019, 9:48pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/5 "2019-02-08T21:48:07Z")

</div>

Thank you for looking into this.

---

<div class="post-metadata">

**Author:** ![321liftoff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/321liftoff/32/27544_2.png) [@321liftoff](https://forum.inductiveautomation.com/u/321liftoff)\
**Post date:** [August 26, 2021, 6:41pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/6 "2021-08-26T18:41:58Z")

</div>

I don’t know if what I’m seeing is part of this issue?

I created a view with a table component, which has a custom key. I have a script modifying the value of this key.

I copied the view and renamed it. I modified the script on its custom key.

The two custom keys on the two different views have the same name.

I am noticing that the two keys are interacting through some quantum mechanics entanglement principle: when one view changes its value, then it’s updated on both.

Its almost like the custom key was a shallow copy instead of a deep copy when duplicating the views?

---

<div class="post-metadata">

**Author:** ![321liftoff](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/321liftoff/32/27544_2.png) [@321liftoff](https://forum.inductiveautomation.com/u/321liftoff)\
**Post date:** [August 26, 2021, 6:52pm UTC](https://forum.inductiveautomation.com/t/bug-12687-creating-modifying-component-custom-property-keys-fires-change-scripts/22448/7 "2021-08-26T18:52:35Z")

</div>

Changing the names of the keys under “custom” to not be the same seems to break the interaction.
