# Disable decimals from "Number entry" field

**URL:** <https://community.glideapps.com/t/disable-decimals-from-number-entry-field/50844>\
**Category:** Ask for Help\
**Created:** [October 4, 2022, 10:26am UTC](https://community.glideapps.com/t/disable-decimals-from-number-entry-field/50844 "2022-10-04T10:26:21Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThomasBD](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thomasbd/32/48750_2.png) [@ThomasBD](https://community.glideapps.com/u/ThomasBD)\
**Post date:** [October 4, 2022, 10:26am UTC](https://community.glideapps.com/t/disable-decimals-from-number-entry-field/50844/1 "2022-10-04T10:26:22Z")

</div>

In a “Number entry” field, can we only allow users to enter rounded numbers (no decimals)?

Thanks!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [October 4, 2022, 10:29am UTC](https://community.glideapps.com/t/disable-decimals-from-number-entry-field/50844/2 "2022-10-04T10:29:01Z")

</div>

No, I don’t believe so.

But you can post-process the entered data to round it or truncate it. (with a Math column)

---

<div class="post-metadata">

**Author:** ![Majestic\_Intern](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/majestic_intern/32/36814_2.png) [@Majestic\_Intern](https://community.glideapps.com/u/Majestic_Intern)\
**Post date:** [October 4, 2022, 7:33pm UTC](https://community.glideapps.com/t/disable-decimals-from-number-entry-field/50844/3 "2022-10-04T19:33:45Z")

</div>

Something you can try is regular expressions. For instance you point a “Text Matches” column at the column that stores the numbers and type this in ^ [0-9]+$ (remove the space after ^) This will be false anytime a non number is input. then you can display a warning when this field is false & disable the next step while this field is false.

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [October 4, 2022, 11:37pm UTC](https://community.glideapps.com/t/disable-decimals-from-number-entry-field/50844/4 "2022-10-04T23:37:51Z")

</div>

Assuming this is a form environment, It would only work when you have a custom form to control the visibility of the form. I would love the ability to specify submission conditions for native forms based on more logic than just what is required or not.
