# Scripting numeric textfield component

**URL:** <https://forum.inductiveautomation.com/t/scripting-numeric-textfield-component/85613>\
**Category:** Ignition\
**Tags:** ignition81, scripting, vision\
**Created:** [February 13, 2024, 7:17am UTC](https://forum.inductiveautomation.com/t/scripting-numeric-textfield-component/85613 "2024-02-13T07:17:40Z")\
**Posts on this page:** 1\
**Showing post:** 2

<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:** [February 13, 2024, 12:32pm UTC](https://forum.inductiveautomation.com/t/scripting-numeric-textfield-component/85613/2 "2024-02-13T12:32:03Z")

</div>

This is a repeat post, which is [against this forum's rules](https://forum.inductiveautomation.com/faq). It is reasonable to add a comment on a post after a couple days to bring more attention to an unanswered question.

> [@Scripting numeric text field component](https://forum.inductiveautomation.com/t/scripting-numeric-text-field-component/85560):
>
> Hello, I want to realise following functionality with a numeric text field: users should enter an ID ( only digits). After entering an ID, pressing Enter should confirm the input. In the keyPressed event script, I want to display relevant information based on the entered ID. However, I'm facing challenges in retrieving the entered ID and preventing users from entering invalid characters. Could someone help?

---

_[View the full topic](https://forum.inductiveautomation.com/t/scripting-numeric-textfield-component/85613)._
