# Using HOA to write to multiple tags

**URL:** <https://forum.inductiveautomation.com/t/using-hoa-to-write-to-multiple-tags/2363>\
**Category:** Ignition\
**Created:** [November 23, 2010, 3:42pm UTC](https://forum.inductiveautomation.com/t/using-hoa-to-write-to-multiple-tags/2363 "2010-11-23T15:42:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![rooks](https://avatars.discourse-cdn.com/v4/letter/r/ce7236/32.png) [@rooks](https://forum.inductiveautomation.com/u/rooks)\
**Post date:** [November 23, 2010, 3:42pm UTC](https://forum.inductiveautomation.com/t/using-hoa-to-write-to-multiple-tags/2363/1 "2010-11-23T15:42:40Z")

</div>

Is there a way to set up an HOA button to write to multiple tags at the same time?

---

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [November 23, 2010, 3:47pm UTC](https://forum.inductiveautomation.com/t/using-hoa-to-write-to-multiple-tags/2363/2 "2010-11-23T15:47:38Z")

</div>

Could use an OnProperty change script, filtered to check when the control var changes and write that change to a series of tags.

---

<div class="post-metadata">

**Author:** ![Dravik](https://avatars.discourse-cdn.com/v4/letter/d/e274bd/32.png) [@Dravik](https://forum.inductiveautomation.com/u/Dravik)\
**Post date:** [November 23, 2010, 3:51pm UTC](https://forum.inductiveautomation.com/t/using-hoa-to-write-to-multiple-tags/2363/3 "2010-11-23T15:51:17Z")

</div>

I think it would look something like this…

```auto
if event.propertyName == "Control Value":
	system.tag.writeToTag('[Client]tag1', event.newValue)
	system.tag.writeToTag('[Client]tag2', event.newValue)
	system.tag.writeToTag('[Client]tag3', event.newValue)
```
