# Move a component when a tag is activated

**URL:** <https://forum.inductiveautomation.com/t/move-a-component-when-a-tag-is-activated/37110>\
**Category:** Ignition\
**Created:** [July 27, 2020, 9:16am UTC](https://forum.inductiveautomation.com/t/move-a-component-when-a-tag-is-activated/37110 "2020-07-27T09:16:36Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [July 27, 2020, 9:16am UTC](https://forum.inductiveautomation.com/t/move-a-component-when-a-tag-is-activated/37110/1 "2020-07-27T09:16:36Z")

</div>

Hello  
I need to move a component when a tag is activated ( up / down movement ). so i have used function: system.gui.transform. It works fine but how do I relate it to the tag alone without any mouse event. any help please?

---

<div class="post-metadata">

**Author:** ![jonathan.taylor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jonathan.taylor/32/4048_2.png) [@jonathan.taylor](https://forum.inductiveautomation.com/u/jonathan.taylor)\
**Post date:** [July 27, 2020, 10:39am UTC](https://forum.inductiveautomation.com/t/move-a-component-when-a-tag-is-activated/37110/2 "2020-07-27T10:39:36Z")

</div>

I would create a custom property for the tag state on the component.

Then I would create a propertyChange event script on the component that then looks at the above custom property for changes.

Make sure you filter the propertyChange script properly else it’ll react to all property changes, not just the state you want.

---

<div class="post-metadata">

**Author:** ![lachguerabdallah](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/lachguerabdallah/32/25558_2.png) [@lachguerabdallah](https://forum.inductiveautomation.com/u/lachguerabdallah)\
**Post date:** [July 27, 2020, 12:51pm UTC](https://forum.inductiveautomation.com/t/move-a-component-when-a-tag-is-activated/37110/3 "2020-07-27T12:51:30Z")

</div>

thank you.  
it works perfectly
