# Confirmation on numeric text field

**URL:** <https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684>\
**Category:** Ignition\
**Tags:** ignition80\
**Created:** [September 7, 2021, 9:29pm UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684 "2021-09-07T21:29:54Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamshidzade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jamshidzade/32/24927_2.png) [@jamshidzade](https://forum.inductiveautomation.com/u/jamshidzade)\
**Post date:** [September 7, 2021, 9:29pm UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684/1 "2021-09-07T21:29:54Z")

</div>

I would like to add a confirmation before fire up a numeric text field  
I add some scripts on property change but does not work as I expected

if system.gui.confirm(“Are you sure you want to open this window?”):  
if event.keyCode==event.VK\_ENTER: event.source.doClick()  
return

would you please help me? numeric text using an indirect tag to UDT parameter

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 7, 2021, 10:10pm UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684/2 "2021-09-07T22:10:06Z")

</div>

Vision, or Perspective?

---

<div class="post-metadata">

**Author:** ![jamshidzade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jamshidzade/32/24927_2.png) [@jamshidzade](https://forum.inductiveautomation.com/u/jamshidzade)\
**Post date:** [September 7, 2021, 10:15pm UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684/3 "2021-09-07T22:15:20Z")

</div>

Vision

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [September 8, 2021, 3:31pm UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684/4 "2021-09-08T15:31:16Z")

</div>

`propertyChange` events happen after the property has already changed. You could add a custom property with the ‘real’ value, that you only write from scripting _after_ your write has been attempted from the text component itself.

---

<div class="post-metadata">

**Author:** ![jamshidzade](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/jamshidzade/32/24927_2.png) [@jamshidzade](https://forum.inductiveautomation.com/u/jamshidzade)\
**Post date:** [September 15, 2021, 4:43pm UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684/5 "2021-09-15T16:43:57Z")

</div>

Thanks for the reply, I tried several ways, but I didn’t get results, do you have any examples? Confirmation of any input should be a basic part of SCADA

---

<div class="post-metadata">

**Author:** ![chaoliang](https://avatars.discourse-cdn.com/v4/letter/c/ba8739/32.png) [@chaoliang](https://forum.inductiveautomation.com/u/chaoliang)\
**Post date:** [December 10, 2021, 12:40am UTC](https://forum.inductiveautomation.com/t/confirmation-on-numeric-text-field/50684/6 "2021-12-10T00:40:18Z")

</div>

Can you advise a quick example on how it is done?  
The following post has similar enquiry.

> [@Toggle button confirmation](https://forum.inductiveautomation.com/t/toggle-button-confirmation/7240):
>
> Is it possible to use confirmation with the boolean toggle button? I know i can use confirmation with the 2 state toggle, but i can’t seem to replicate the visual styling of the boolean toggle on the 2 state toggle.
