# Numeric text field scripting

**URL:** <https://forum.inductiveautomation.com/t/numeric-text-field-scripting/58412>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [April 13, 2022, 1:04pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-scripting/58412 "2022-04-13T13:04:46Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mjohnson0238](https://avatars.discourse-cdn.com/v4/letter/m/4bbf92/32.png) [@mjohnson0238](https://forum.inductiveautomation.com/u/mjohnson0238)\
**Post date:** [April 13, 2022, 1:04pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-scripting/58412/1 "2022-04-13T13:04:46Z")

</div>

Good day! I am trying to use a numeric text field to change a .value of a tag when entered.

Is this the correct way? Im very new to python scripting.

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/a/3/a32488092e05b74a57aca71ffb98d4d7143cebff.png)

---

<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:** [April 13, 2022, 1:21pm UTC](https://forum.inductiveautomation.com/t/numeric-text-field-scripting/58412/2 "2022-04-13T13:21:08Z")

</div>

The standard procedure is to bind the numeric text field to the tag. Then the update is automatic and no scripting is involved.

 ![Tag binding](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/7/17cb204a8d91acb693e4afce427ade8d43073bab.png)

1. Add the component.
2. Add a binding.
3. Select the tag.
4. Make it bidirectional.
