# Numeric text field when change set a tag

**URL:** <https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780>\
**Category:** Ignition\
**Created:** [July 23, 2014, 6:49pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780 "2014-07-23T18:49:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel944](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manuel944](https://forum.inductiveautomation.com/u/manuel944)\
**Post date:** [July 23, 2014, 6:49pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780/1 "2014-07-23T18:49:25Z")

</div>

Hello i have a question can you maybe help me for write a script!

Can you write the script that do when i finish to write a number in a numeric text field  
set to one another tag?

![:prayer:](https://us1.discourse-cdn.com/inductiveautomation/original/1X/e5a7e3b63facc151ea73e3b45db7bdb3d4bdc316.gif ":prayer:")

Thank you sorry for my bad english

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [July 23, 2014, 7:33pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780/2 "2014-07-23T19:33:43Z")

</div>

Put this on the propertyChange event of the numeric text field.

`if event.propertyName == "value":
	system.tag.write("MyIntTag",event.newValue)`

---

<div class="post-metadata">

**Author:** ![manuel944](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manuel944](https://forum.inductiveautomation.com/u/manuel944)\
**Post date:** [July 23, 2014, 7:44pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780/3 "2014-07-23T19:44:55Z")

</div>

Thank you jpark…

But this will put me on 1 the tag that i want?

I repeat this is my problem…

When a number in a numeric text field change or manually (by me) or automatically (by plc)

i want that set to = 1 another tag that i have…

The scripts that you write do this? Thank you so much for your time 🙂

---

<div class="post-metadata">

**Author:** ![adamaustin](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@adamaustin](https://forum.inductiveautomation.com/u/adamaustin)\
**Post date:** [July 23, 2014, 8:06pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780/4 "2014-07-23T20:06:33Z")

</div>

Thanks for more info. You need to use a [Tag Change Event](https://inductiveautomation.com/support/usermanuals/ignition/tag_change_scripts.htm). The code is almost the same:

```auto
system.tag.write("AnotherTag", 1)
```

 ![](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/c/ac09533d755dfd2fb62dbb8c469bfebcc2c22487.jpeg)

---

<div class="post-metadata">

**Author:** ![manuel944](https://avatars.discourse-cdn.com/v4/letter/m/6bbea6/32.png) [@manuel944](https://forum.inductiveautomation.com/u/manuel944)\
**Post date:** [July 23, 2014, 8:34pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-when-change-set-a-tag/8780/5 "2014-07-23T20:34:06Z")

</div>

Thank you adamaustin i will try it tomorrow in office

Thank you so much 🙂
