# NumericEntryField Confirm

**URL:** <https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [June 30, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200 "2020-06-30T16:23:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cwells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cwells/32/35042_2.png) [@cwells](https://forum.inductiveautomation.com/u/cwells)\
**Post date:** [June 30, 2020, 4:23pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200/1 "2020-06-30T16:23:48Z")

</div>

I am currently working on using Perspective for a mobile app. My current goal is to have a “Confirm” prompt appear after a user enters in a new value for a field. Since I am sure the fancy “thought balloon” for the One-Shot buttons is only available for that component, I was going to try using system.gui.confirm script in an event. The closest event I am finding are “onCompositionEnd” in the Text Composition Events, but I am not sure if it is triggering by touching “Done” or “Return” on my iPhone on-screen keypad.

Am I using the correct event for this, or are the Text Composition Events intended for other components?

---

<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:** [June 30, 2020, 4:27pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200/2 "2020-06-30T16:27:01Z")

</div>

Well, leaving aside the problem of which event to use, `system.gui.confirm`, despite the namespace, is not a function that will work in Perspective; only in Vision. Within Perspective, you’ll have to ‘roll-your-own’ popups and open them, and retrieve the value(s) the user submitted.

---

<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 30, 2020, 4:55pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200/3 "2020-06-30T16:55:49Z")

</div>

I would include a valueChanged script to open a Popup. Depending on what actions you want the confirmation Popup to provide, you’ll probably need to also set up a message handler on the Numeric Entry Field, as well as place some system.perspective.sendMessage calls on the Popup buttons.

---

<div class="post-metadata">

**Author:** ![cwells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cwells/32/35042_2.png) [@cwells](https://forum.inductiveautomation.com/u/cwells)\
**Post date:** [July 1, 2020, 1:37pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200/4 "2020-07-01T13:37:34Z")

</div>

Thanks for the clarification on system.gui.confirm, as well as a proposed solution for my issue. However, I am not seeing a “valueChanged” event for the Numeric Entry Field component, instead the closest event being “onCompositionEnd”. I tried adding a Logout action to this event, but I could not get it to trigger (assuming that it is triggered when the field is updated upon touching “Done” or “Return” on my iPhone on-screen keypad). Is the “onCompositionEnd” event supported in the Numeric Entry Field? If not, is there a different component I should be using? Thanks for your help.

UPDATE: Upon further testing, I found that the “onActionPerformed” event of the Component Events triggered after updating the Numeric Entry Field’s value. I will continue on with your suggested method. Thanks!

UPDATE: I just found a more detailed description of that suggested method [here](http://forum.inductiveautomation.com/t/getting-confirmation-from-a-user-in-perspective/30494/2). Thanks again!

---

<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:** [July 1, 2020, 3:18pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200/6 "2020-07-01T15:18:31Z")

</div>

The change script can be found by right-clicking any property in the Property Editor. If there is no change script currently in place, you’ll see “Add Change Script”. This script will execute whenever the property changes.

![Screen Shot 2020-07-01 at 8.17.06 AM](https://us1.discourse-cdn.com/inductiveautomation/original/3X/1/c/1c42ca8becd3a4e6f1395f76106caf61adb6c9ca.png)

---

<div class="post-metadata">

**Author:** ![cwells](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/cwells/32/35042_2.png) [@cwells](https://forum.inductiveautomation.com/u/cwells)\
**Post date:** [July 1, 2020, 3:50pm UTC](https://forum.inductiveautomation.com/t/numericentryfield-confirm/36200/7 "2020-07-01T15:50:29Z")

</div>

Just what I needed. Thanks!
