# Numeric Input - Disallow entering decimal values?

**URL:** <https://forum.inductiveautomation.com/t/numeric-input-disallow-entering-decimal-values/68523>\
**Category:** Ignition\
**Tags:** perspective\
**Created:** [January 11, 2023, 11:56pm UTC](https://forum.inductiveautomation.com/t/numeric-input-disallow-entering-decimal-values/68523 "2023-01-11T23:56:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![nminchin](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nminchin/32/6911_2.png) [@nminchin](https://forum.inductiveautomation.com/u/nminchin)\
**Post date:** [January 11, 2023, 11:56pm UTC](https://forum.inductiveautomation.com/t/numeric-input-disallow-entering-decimal-values/68523/1 "2023-01-11T23:56:33Z")

</div>

Is it possible to stop users from entering decimal values when trying to enter values for integer tags? I thought the `props.format` would limit this, but it seems they can enter whatever they want (including multiple decimal points) and it's evaluated after the entry has been submitted

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

---

<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:** [January 12, 2023, 12:03am UTC](https://forum.inductiveautomation.com/t/numeric-input-disallow-entering-decimal-values/68523/2 "2023-01-12T00:03:04Z")

</div>

I don't think you can guarantee the value _in the field_ is always valid across browsers; welcome to the wonderful world of the web:

> **[1398528 - HTML should not allow users to type in characters that are not...](https://bugzilla.mozilla.org/show_bug.cgi?id=1398528#c3)**
>
> NEW (nobody) in Core - DOM: Core & HTML. Last updated 2023-01-11.

The upcoming form component should be able to help _somewhat_ with input validation, but it will likely still have the same core issue of indeterminate browser behavior; it just might help you alert users to the problem quicker.
