# Perspective version 8.x updating a direct tag with a button

**URL:** <https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235>\
**Category:** Ignition\
**Created:** [April 3, 2021, 1:58am UTC](https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235 "2021-04-03T01:58:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Michael.Usry](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Michael.Usry](https://forum.inductiveautomation.com/u/Michael.Usry)\
**Post date:** [April 3, 2021, 1:58am UTC](https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235/1 "2021-04-03T01:58:54Z")

</div>

I am trying to change a Memory tag using a button. The tag is a BOOL. I’ve used this code in an Event on the button:

tagPath = “[default]SORTER\_A\_CUSTOM/testing”  
values = [0]  
system.tag.writeAsync(tags, values)

Every example I’ve found uses a an indirect path to the same tag. Is it possible to update another tag using a button, not a toggle or a checkbox?

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 3, 2021, 2:12am UTC](https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235/2 "2021-04-03T02:12:43Z")

</div>

Try changing the first line like so:

```auto
tags = ["[default]SORTER_A_CUSTOM/testing"]

```

writeAsync() needs a list for both tag paths and values.

---

<div class="post-metadata">

**Author:** ![Michael.Usry](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Michael.Usry](https://forum.inductiveautomation.com/u/Michael.Usry)\
**Post date:** [April 5, 2021, 12:01pm UTC](https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235/3 "2021-04-05T12:01:11Z")

</div>

Thanks. But it didn’t work.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [April 5, 2021, 12:22pm UTC](https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235/4 "2021-04-05T12:22:03Z")

</div>

Ok.

---

<div class="post-metadata">

**Author:** ![Michael.Usry](https://avatars.discourse-cdn.com/v4/letter/m/7c8e57/32.png) [@Michael.Usry](https://forum.inductiveautomation.com/u/Michael.Usry)\
**Post date:** [April 5, 2021, 12:32pm UTC](https://forum.inductiveautomation.com/t/perspective-version-8-x-updating-a-direct-tag-with-a-button/45235/5 "2021-04-05T12:32:52Z")

</div>

Ok, after looking closer… it helps to match variable names AND saving before click on the button in the browser! LOL. THX!
