# How to check the value of Numeric Text Field is manually changed or changed by script/binding

**URL:** <https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913>\
**Category:** Ignition\
**Tags:** ignition79\
**Created:** [December 24, 2019, 6:25am UTC](https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913 "2019-12-24T06:25:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhananjay\_vichare](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dhananjay_vichare/32/74712_2.png) [@dhananjay\_vichare](https://forum.inductiveautomation.com/u/dhananjay_vichare)\
**Post date:** [December 24, 2019, 6:25am UTC](https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913/1 "2019-12-24T06:25:10Z")

</div>

I want to check the value of Numeric Text Field is changed from client and not by binding/script. I am using this Numeric Text Field for recipe, which will have value from MSSQL. When I change the recipe number from dropdown the value of Numeric Text Field will changed from script. If operator changes Numeric Text Field value manually. I need to highlight it and update it to the MSSQL table.

Please help.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 24, 2019, 8:56am UTC](https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913/2 "2019-12-24T08:56:13Z")

</div>

Usually I will have a Save button to commit changes to recipes to the database. In this case I would just have a script on the save button to get the values of all of the recipe data fields, then write them into the table all at once.

---

<div class="post-metadata">

**Author:** ![dhananjay\_vichare](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dhananjay_vichare/32/74712_2.png) [@dhananjay\_vichare](https://forum.inductiveautomation.com/u/dhananjay_vichare)\
**Post date:** [December 24, 2019, 9:30am UTC](https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913/3 "2019-12-24T09:30:05Z")

</div>

Thanks for reply nminchin, actually we also doing same thing. but I would like to show the recipe change log (Which value of recipe changed), hence checking with forum that could we get the value change event which will only activate, when value changed from client and not from script/code.

---

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [December 24, 2019, 9:45am UTC](https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913/4 "2019-12-24T09:45:35Z")

</div>

If the user doesn’t choose to save the recipe though and you detect a change regardless and write to the audit log, it would be a false log.

Where I’ve wanted to detect a change, I’ve created another parameter on each recipe field component called something like `originalValue`. When you load the recipe, write the values to both the component text field and the original value. Then when the user changes the value, you can tell using the originalValue property. Then when the user saves the recipe, you can check which fields have changed and write to the audit log as required

---

<div class="post-metadata">

**Author:** ![dhananjay\_vichare](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/dhananjay_vichare/32/74712_2.png) [@dhananjay\_vichare](https://forum.inductiveautomation.com/u/dhananjay_vichare)\
**Post date:** [December 24, 2019, 10:25am UTC](https://forum.inductiveautomation.com/t/how-to-check-the-value-of-numeric-text-field-is-manually-changed-or-changed-by-script-binding/30913/5 "2019-12-24T10:25:11Z")

</div>

> [@nminchin](#):
>
> the originalValue property. Th

Thanks, That will work. I will do accordingly.
