# Updating the value shown in the Numeric entry field without directly binding value property to a tag

**URL:** <https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829>\
**Category:** Ignition\
**Tags:** perspective, scripting\
**Created:** [March 25, 2024, 12:28pm UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829 "2024-03-25T12:28:52Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Shan\_M](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shan\_M](https://forum.inductiveautomation.com/u/Shan_M)\
**Post date:** [March 25, 2024, 12:28pm UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829/1 "2024-03-25T12:28:52Z")

</div>

Hello everyone,

I have made a "template view" with a numeric entry field that opens a confirmation popup when the user edits the value in it. On confirmation, the value is written to a tag. I am using this "template view" as an embedded view in other views.

I want the numeric entry field to always display the value of the tag but the problem that I am facing is that the field gets reset to the value in the base view every time I launch a session or navigate between pages.

How do I make sure that the number in the numeric entry field is always showing the current tag value?

---

<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:** [March 25, 2024, 12:34pm UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829/2 "2024-03-25T12:34:54Z")

</div>

I would probably set it up like this:

- On the template view create `params.tagPath`.
- On the template view bind the numeric entry field value to the tag specified in `params.tagPath`.
- Pass in the tagPath on every instance of your template.

---

<div class="post-metadata">

**Author:** ![Shan\_M](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shan\_M](https://forum.inductiveautomation.com/u/Shan_M)\
**Post date:** [March 25, 2024, 1:01pm UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829/4 "2024-03-25T13:01:38Z")

</div>

I already have a tagPath parameter that sends the path to the popup so that it knows what to update.

---

<div class="post-metadata">

**Author:** ![Shan\_M](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shan\_M](https://forum.inductiveautomation.com/u/Shan_M)\
**Post date:** [March 25, 2024, 1:02pm UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829/5 "2024-03-25T13:02:40Z")

</div>

Thanks for the quick reply!  
Wouldn't it automatically update the tag with the inputted value if i bind it to the value property of the numeric entry field?  
Right now the tag is updating via script if the confirmation button is pressed in the popup. I want to update the tag only on when the confirmation button is pressed in the popup.

---

<div class="post-metadata">

**Author:** ![pturmel](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/pturmel/32/3295_2.png) [@pturmel](https://forum.inductiveautomation.com/u/pturmel)\
**Post date:** [March 25, 2024, 1:09pm UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829/6 "2024-03-25T13:09:45Z")

</div>

Use the tagpath supplied to the popup view to perform an _ **indirect** _ tag binding to a **custom** property. Then, use a **uni** -directional binding to connect the numeric entry field to the custom property. Then your entry field won't write back to the tag. Your confirm button would write the entry field's value to the tag, either with `system.tag.writeBlocking()`, or, if you made the indirect binding bidirectional, it could simply write to the custom prop. (Letting that binding propagate the write.)

---

<div class="post-metadata">

**Author:** ![Shan\_M](https://avatars.discourse-cdn.com/v4/letter/s/e56c9b/32.png) [@Shan\_M](https://forum.inductiveautomation.com/u/Shan_M)\
**Post date:** [March 26, 2024, 6:25am UTC](https://forum.inductiveautomation.com/t/updating-the-value-shown-in-the-numeric-entry-field-without-directly-binding-value-property-to-a-tag/87829/7 "2024-03-26T06:25:27Z")

</div>

Thank you!  
I got it to work 🙂
