# How to assign/bind tags to a component in scripting

**URL:** <https://forum.inductiveautomation.com/t/how-to-assign-bind-tags-to-a-component-in-scripting/57897>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [March 31, 2022, 8:54pm UTC](https://forum.inductiveautomation.com/t/how-to-assign-bind-tags-to-a-component-in-scripting/57897 "2022-03-31T20:54:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dilhan\_Bulegoda](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Dilhan\_Bulegoda](https://forum.inductiveautomation.com/u/Dilhan_Bulegoda)\
**Post date:** [March 31, 2022, 8:54pm UTC](https://forum.inductiveautomation.com/t/how-to-assign-bind-tags-to-a-component-in-scripting/57897/1 "2022-03-31T20:54:58Z")

</div>

Hello,

I am new to Ignition and having trouble finding the system command to bind tags to a component in scripting.

I want one button’s action to assign tags to another component in the same window.  
Please advise. Thanks.

---

<div class="post-metadata">

**Author:** ![kirsten.chambers](https://avatars.discourse-cdn.com/v4/letter/k/48db29/32.png) [@kirsten.chambers](https://forum.inductiveautomation.com/u/kirsten.chambers)\
**Post date:** [March 31, 2022, 9:01pm UTC](https://forum.inductiveautomation.com/t/how-to-assign-bind-tags-to-a-component-in-scripting/57897/2 "2022-03-31T21:01:56Z")

</div>

You can use an indirect tag binding on a custom property to accomplish this.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/4/14aea3b04b47e07ba979e16b1a560ca00734c6f6.png)

Then, just set the custom property to your tag path using your button.

---

<div class="post-metadata">

**Author:** ![Dilhan\_Bulegoda](https://avatars.discourse-cdn.com/v4/letter/d/67e7ee/32.png) [@Dilhan\_Bulegoda](https://forum.inductiveautomation.com/u/Dilhan_Bulegoda)\
**Post date:** [March 31, 2022, 10:20pm UTC](https://forum.inductiveautomation.com/t/how-to-assign-bind-tags-to-a-component-in-scripting/57897/3 "2022-03-31T22:20:42Z")

</div>

Thank you. Indirect binding solved the issue for me.
