# How do i create a interger only input field

**URL:** https://community.weweb.io/t/how-do-i-create-a-interger-only-input-field/8949
**Category:** Ask us anything
**Created:** [June 4, 2024, 8:51am UTC](https://community.weweb.io/t/how-do-i-create-a-interger-only-input-field/8949 "2024-06-04T08:51:18Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![hjm](https://avatars.discourse-cdn.com/v4/letter/h/db5fbb/32.png) [@hjm](https://community.weweb.io/u/hjm)
#### Post date: [June 4, 2024, 8:51am UTC](https://community.weweb.io/t/how-do-i-create-a-interger-only-input-field/8949/1 "2024-06-04T08:51:18Z")

</div>

When i create a field with the type number i am still able to put in decimal numbers. How do i disable those.

---

<div class="post-metadata">

### Author: ![MarcelParcs](https://avatars.discourse-cdn.com/v4/letter/m/a6a055/32.png) [@MarcelParcs](https://community.weweb.io/u/MarcelParcs)
#### Post date: [April 28, 2026, 1:09pm UTC](https://community.weweb.io/t/how-do-i-create-a-interger-only-input-field/8949/2 "2026-04-28T13:09:36Z")

</div>

Hi, i know it’s an old thread but does anyone know how to do this? Shouldn’t it be like this by default if we can also choose the decimal type?

---

<div class="post-metadata">

### Author: ![Batik\_Okazov](https://sea2.discourse-cdn.com/flex016/user_avatar/community.weweb.io/batik_okazov/32/12688_2.png) [@Batik\_Okazov](https://community.weweb.io/u/Batik_Okazov)
#### Post date: [April 29, 2026, 2:57pm UTC](https://community.weweb.io/t/how-do-i-create-a-interger-only-input-field/8949/3 "2026-04-29T14:57:40Z")

</div>

Hey,

you can use [masked input](https://docs.weweb.io/add-elements/elements/masked.html)

It allows restriction patterns.
