# Button script: how to wait for all tags to finish writing

**URL:** <https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910>\
**Category:** Ignition\
**Tags:** ignition81, perspective\
**Created:** [November 19, 2026, 5:09pm UTC](https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910 "2026-11-19T17:09:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gschettler](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@gschettler](https://forum.inductiveautomation.com/u/gschettler)\
**Post date:** [November 19, 2026, 5:09pm UTC](https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910/1 "2026-11-19T17:09:05Z")

</div>

I'm working in Ignition perspective v8.1. In my view I have several numeric entry fields whose values are tied to recipe tag members in the PLC using indirect tag binding. I have a button on that same view that, when you click it, it runs a script that does a ReadBlocking of the tags and compares the current values with a set of archived values (to eventurally display what has changed). This all works great except in the case below:

**The issue** is that if I click in the numeric entry field, type a new value, and then immediately click the button (_without_ hitting enter or intentionally clicking out of the numeric entry field), the numeric entry field is writing the tag value _while_ my script is running, and the script does not recognize the new value in time. Adding a one second timer to the script to wait for the tag value to finish writing will make the script work correctly...but I don't like using timers to fix issues like this.

**My question** is if there is a way my script can wait for all the tag values to be written before attempting the readblocking so I know I'm getting all of the latest values. Maybe some meta data property of the numeric entry fields? Or if someone suggests a different approach entirely that is welcome too!

---

<div class="post-metadata">

**Author:** ![ryan.white](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/ryan.white/32/73193_2.png) [@ryan.white](https://forum.inductiveautomation.com/u/ryan.white)\
**Post date:** [November 19, 2026, 5:23pm UTC](https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910/2 "2026-11-19T17:23:40Z")

</div>

Consider slightly adjusting your approach, have a custom property that is indirectly bi-directionally bound to the needed plc tag. Have another custom property that is unidirectionally bound to this first property. Bidirectionally bind the numeric entry to this second property. Repeat this for all the tags you need for that screen.

This allows you to see the existing tag values along side the current entered values for comparison. In addition, your script to commit the values can just copy the second property's value to the first, and the indirect binding will take care of the write to the PLC.

If you have a lot of tags you could group the first properties into an object property, and the second items into a different object property (perhaps `sourceValue` and `userValue`). This would also simplify your write script down to `view.custom.objectA = view.custom.objectB`. If you want to save value copies for a different comparison screen, you can take copies of both objects and hand them off to show the difference comparison.

---

<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:** [November 19, 2026, 5:32pm UTC](https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910/3 "2026-11-19T17:32:02Z")

</div>

> [@gschettler](#):
>
> wait for all the tag values to be written before attempting the readblocking

Not reliably. The time it takes to write is not guaranteed, except for the 60/90 second timeouts that might kick in. Plus the subscription poll time variability on the read side.

I typically use something like Ryan's approach.

---

<div class="post-metadata">

**Author:** ![gschettler](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@gschettler](https://forum.inductiveautomation.com/u/gschettler)\
**Post date:** [November 19, 2026, 5:46pm UTC](https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910/4 "2026-11-19T17:46:43Z")

</div>

Okay interesting. So you're kind of creating a layer between the numeric entry field and the tag writing by creating the custom property, and then the script is looking at the custom properties instead of reading from the PLC again so that we have those value instantaneously essentially? That's how I'm interpreting that right now.

---

<div class="post-metadata">

**Author:** ![gschettler](https://avatars.discourse-cdn.com/v4/letter/g/bbe5ce/32.png) [@gschettler](https://forum.inductiveautomation.com/u/gschettler)\
**Post date:** [November 19, 2026, 5:48pm UTC](https://forum.inductiveautomation.com/t/button-script-how-to-wait-for-all-tags-to-finish-writing/117910/5 "2026-11-19T17:48:20Z")

</div>

Totally, definitely in agreement that the timer method is not a good option.
