# Numeric Entry onActionPerformed issue

**URL:** <https://forum.inductiveautomation.com/t/numeric-entry-onactionperformed-issue/92165>\
**Category:** Ignition\
**Tags:** ignition81, scripting, perspective\
**Created:** [June 20, 2024, 4:36pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-onactionperformed-issue/92165 "2024-06-20T16:36:54Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Riley\_Hallett](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@Riley\_Hallett](https://forum.inductiveautomation.com/u/Riley_Hallett)\
**Post date:** [June 20, 2024, 4:36pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-onactionperformed-issue/92165/1 "2024-06-20T16:36:54Z")

</div>

I have an issue with my numeric entry field onActionPerformed script. The button works fine without the script configured, but I have a script set up to send a message onActionPerformed. The message sends, and it works, but the value of my numeric entry doesn't update.

I'm using Perspective v8.1.30

---

<div class="post-metadata">

**Author:** ![Riley\_Hallett](https://avatars.discourse-cdn.com/v4/letter/r/e99b99/32.png) [@Riley\_Hallett](https://forum.inductiveautomation.com/u/Riley_Hallett)\
**Post date:** [June 20, 2024, 5:50pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-onactionperformed-issue/92165/2 "2024-06-20T17:50:39Z")

</div>

Update: I found a workaround, but still not a great solution.

The message I was sending was to focus on another object. I put a time-delay on this focus and it seems to work. It must execute the onActionPerformed script and then update the numeric value. So it would remove focus just before it would update the value?

---

<div class="post-metadata">

**Author:** ![cmallonee](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cmallonee/32/6416_2.png) [@cmallonee](https://forum.inductiveautomation.com/u/cmallonee)\
**Post date:** [June 20, 2024, 6:20pm UTC](https://forum.inductiveautomation.com/t/numeric-entry-onactionperformed-issue/92165/3 "2024-06-20T18:20:43Z")

</div>

Please describe _exactly_ what you are trying to do. Any sort of sending of focus while interacting with an input field seems like you're asking for trouble.
