# Write to a memory tag from a label field

**URL:** <https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [June 10, 2024, 10:12pm UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658 "2024-06-10T22:12:00Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![Armando\_Rivero\_Rubal](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Armando\_Rivero\_Rubal](https://forum.inductiveautomation.com/u/Armando_Rivero_Rubal)\
**Post date:** [June 10, 2024, 10:12pm UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/1 "2024-06-10T22:12:00Z")

</div>

How can I Write to a memoryTAg from a Label field, or a Numeric Entry field?

---

<div class="post-metadata">

**Author:** ![Transistor](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/transistor/32/3380_2.png) [@Transistor](https://forum.inductiveautomation.com/u/Transistor)\
**Post date:** [June 10, 2024, 10:38pm UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/2 "2024-06-10T22:38:53Z")

</div>

You can't edit a Label component. You mean a Text Field component?

Are you working in Vision or Perspective? Please select the tag from the dropdown below your question title.

---

<div class="post-metadata">

**Author:** ![Armando\_Rivero\_Rubal](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Armando\_Rivero\_Rubal](https://forum.inductiveautomation.com/u/Armando_Rivero_Rubal)\
**Post date:** [June 10, 2024, 11:32pm UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/3 "2024-06-10T23:32:44Z")

</div>

Ignition perpestive

---

<div class="post-metadata">

**Author:** ![Armando\_Rivero\_Rubal](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Armando\_Rivero\_Rubal](https://forum.inductiveautomation.com/u/Armando_Rivero_Rubal)\
**Post date:** [June 10, 2024, 11:51pm UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/4 "2024-06-10T23:51:55Z")

</div>

![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/4/8/481ae82822c9afc7b07d44fd7beee051ce32ecaf.png)

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [June 11, 2024, 12:52am UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/5 "2024-06-11T00:52:49Z")

</div>

You **cannot** use a label as an entry field, use a text field instead. Bidirectionally bind the value of the text field to the memory tag you want to receive the value.

If you want the label to display the value of the tag, unidirectionally bind the tag to the label.

> **[Tag Binding Video at Inductive University](https://www.inductiveuniversity.com/videos/perspective-tag-binding/8.1)**
>
> Tag bindings are the simplest method of configuring a link between a Perspective Component and a Tag value. This lesson demonstrates how to create a Tag binding in Perspective.

---

<div class="post-metadata">

**Author:** ![amy.sudibyo](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/amy.sudibyo/32/38659_2.png) [@amy.sudibyo](https://forum.inductiveautomation.com/u/amy.sudibyo)\
**Post date:** [June 11, 2024, 1:06am UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/6 "2024-06-11T01:06:15Z")

</div>

You say you want to write to a memory tag but the tag you have shown is an expression tag. Do you mean to write to that tag or a different one?

---

<div class="post-metadata">

**Author:** ![pascal.fragnoud](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pascal.fragnoud/32/24728_2.png) [@pascal.fragnoud](https://forum.inductiveautomation.com/u/pascal.fragnoud)\
**Post date:** [June 11, 2024, 7:10am UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/7 "2024-06-11T07:10:26Z")

</div>

Broadly speaking, there are 2 ways to write to MEMORY tags:

- bidirectional bindings:  
Put a tag binding on your text field, pointing to the tag. This will make the text field display the value of the tag. Now make the binding bidirectional by checking the appropriate checkbox in the binding configuration popup, and the link will work in both directions. Writing a value in the text field will also write that value in the tag
- scripted writes:  
You can also use the built-in functions `system.tag.writeBlocking` and `system.tag.writeAsync` to write to your tag. In this case, you'll need a trigger that tells your script to run, usually an event on one of your component. It could be a button's `onActionPerformed` event, a gateway scheduled event to perform the write at a specific time of the day, a value change event on a tag or a property...

Do like @ryan.white said and watch the university videos, and read some doc. This is a FOUNDAMENTAL part of ignition and you NEED to understand it. The good news is, it's not very complicated.

---

<div class="post-metadata">

**Author:** ![Armando\_Rivero\_Rubal](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Armando\_Rivero\_Rubal](https://forum.inductiveautomation.com/u/Armando_Rivero_Rubal)\
**Post date:** [June 11, 2024, 7:50am UTC](https://forum.inductiveautomation.com/t/write-to-a-memory-tag-from-a-label-field/91658/8 "2024-06-11T07:50:36Z")

</div>

Thank you so much! It already works, after watching the video I followed your instructions
