# Binding Script Value(Float) to Numeric Text Box

**URL:** <https://forum.inductiveautomation.com/t/binding-script-value-float-to-numeric-text-box/22998>\
**Category:** Ignition\
**Created:** [March 1, 2019, 6:01pm UTC](https://forum.inductiveautomation.com/t/binding-script-value-float-to-numeric-text-box/22998 "2019-03-01T18:01:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [March 1, 2019, 6:01pm UTC](https://forum.inductiveautomation.com/t/binding-script-value-float-to-numeric-text-box/22998/1 "2019-03-01T18:01:05Z")

</div>

I have a script that adds a column and calculate the Average, How do I bind this value(Avg) to a numeric text box.

I have looked all over and watched several videos but still can’t figure it out.

Thanks

---

<div class="post-metadata">

**Author:** ![grietveld](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/grietveld/32/6984_2.png) [@grietveld](https://forum.inductiveautomation.com/u/grietveld)\
**Post date:** [March 1, 2019, 6:22pm UTC](https://forum.inductiveautomation.com/t/binding-script-value-float-to-numeric-text-box/22998/2 "2019-03-01T18:22:32Z")

</div>

You should be able to just assign the value in the script by using a line similar to the one below. It may change a bit depending on where your script executes.

```auto
event.source.getComponent('Numeric Text Field').floatValue = value

```

Easiest ways to find the property for scripting would be to use the ‘Insert Property Reference’ button in the scripting window, turning on the description area and selecting the property you want to write to, or looking at the component in the wiki. Most of those locations should show the property name to use in scripts

---

<div class="post-metadata">

**Author:** ![dcamp1](https://avatars.discourse-cdn.com/v4/letter/d/dc4da7/32.png) [@dcamp1](https://forum.inductiveautomation.com/u/dcamp1)\
**Post date:** [March 1, 2019, 7:00pm UTC](https://forum.inductiveautomation.com/t/binding-script-value-float-to-numeric-text-box/22998/3 "2019-03-01T19:00:46Z")

</div>

Thank You, and especially the extra part about how to do this.
