# Accept Numeric Input Only After Confirmation

**URL:** <https://forum.inductiveautomation.com/t/accept-numeric-input-only-after-confirmation/104224>\
**Category:** Ignition\
**Tags:** scripting, ignition81, vision\
**Created:** [March 26, 2025, 10:43am UTC](https://forum.inductiveautomation.com/t/accept-numeric-input-only-after-confirmation/104224 "2025-03-26T10:43:10Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![surajpatil26796](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@surajpatil26796](https://forum.inductiveautomation.com/u/surajpatil26796)\
**Post date:** [March 26, 2025, 10:43am UTC](https://forum.inductiveautomation.com/t/accept-numeric-input-only-after-confirmation/104224/1 "2025-03-26T10:43:10Z")

</div>

Hi Experts,  
I am new to ignition and playing around with vision components.  
I have a Numeric input field which allows a user to edit the value and accept the value only after pressing ENTER button.  
Now i want to have a confirmation dialog box after pressing ENTER key. Numeric field should accept the edited value only after i press Yes in confirmation dialog box. For this i have done below changes in component scripting:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/7/e/7ecee5aedbba2b3a321996db346941460242d141.png)

But the observation is that numeric filed is accepting a value and passing it to the tag after pressing ENTER and before confirmation.

---

<div class="post-metadata">

**Author:** ![surajpatil26796](https://avatars.discourse-cdn.com/v4/letter/s/51bf81/32.png) [@surajpatil26796](https://forum.inductiveautomation.com/u/surajpatil26796)\
**Post date:** [March 26, 2025, 10:45am UTC](https://forum.inductiveautomation.com/t/accept-numeric-input-only-after-confirmation/104224/2 "2025-03-26T10:45:15Z")

</div>

My Numeric field component property for your reference:

 ![image](https://us1.discourse-cdn.com/inductiveautomation/original/3X/3/b/3b4a4985237117be37ac8c0f2871630f7dcb21bf.png)

---

<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 26, 2025, 12:07pm UTC](https://forum.inductiveautomation.com/t/accept-numeric-input-only-after-confirmation/104224/3 "2025-03-26T12:07:46Z")

</div>

Don't use a bidirectional binding directly on the entry field's value. Instead, add a custom property (I would call it `raw`) and move the bidirectional binding to that new property. Then make a unidirectional property binding from the field's value to the custom property.

Add styling to the field to highlight when `raw` and `value` are different. Then, in your confirmation script, or perhaps a "send" button, all you have to do is copy `value` to `raw` after confirmation. You can also support canceling by copying `raw` to `value`.
