# Question: Field Input Restrictions

**URL:** <https://community.glideapps.com/t/question-field-input-restrictions/13504>\
**Category:** Ask for Help\
**Created:** [August 3, 2020, 1:51pm UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504 "2020-08-03T13:51:16Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![\_eric](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_eric](https://community.glideapps.com/u/_eric)\
**Post date:** [August 3, 2020, 1:51pm UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/1 "2020-08-03T13:51:16Z")

</div>

Does anyone know how to accomplish the following:

- Prevent users from putting letters in number fields
- Prevent negative numbers
- When selecting date, cannot select previous dates only future dates.
- Is there a time input on iphone? The time input still asks for date?

Any insight?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 10, 2020, 4:53am UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/2 "2020-08-10T04:53:16Z")

</div>

The type of entry component you choose will determine which keyboard shows on phone devices (IOS is a little odd with number and phone pads) and at least with the number entry, you should not be able to type non numeric characters.

The new Min and Max values on Numeric Entry components should prevent negative numbers.

I’m not aware of any way to restrict Date entry to only future dates, but depending on you situation, you can show or hide different components or buttons based on the date entered. You could also build a list of dates in your sheet and display them as a choice component.

There is no Time Only entry. Only Date and Date/Time, although you can set it to display only time after it’s entered.

---

<div class="post-metadata">

**Author:** ![\_eric](https://avatars.discourse-cdn.com/v4/letter/_/5f9b8f/32.png) [@\_eric](https://community.glideapps.com/u/_eric)\
**Post date:** [August 10, 2020, 2:02pm UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/3 "2020-08-10T14:02:18Z")

</div>

Thank you for the info @Jeff_Hager! The use case for the date limitations would be to prevent users from booking past dates. I would imagine I am not the only person with this request.

Do you know if the date restriction is on the roadmap for the Glide Team?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [August 10, 2020, 2:08pm UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/4 "2020-08-10T14:08:58Z")

</div>

No idea what Glide has planned for the future.

---

<div class="post-metadata">

**Author:** ![adelhammoud](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/adelhammoud/32/5587_2.png) [@adelhammoud](https://community.glideapps.com/u/adelhammoud)\
**Post date:** [August 10, 2020, 5:52pm UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/5 "2020-08-10T17:52:41Z")

</div>

Totally support this new feature request, something like this

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/3/3064c86fdc76c315b3a7ceb94eeebcfe1e397535.png)

---

<div class="post-metadata">

**Author:** ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)\
**Post date:** [August 10, 2020, 7:36pm UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/6 "2020-08-10T19:36:21Z")

</div>

To prevent past dates, try to gather the requested date before the form submission and use that selection to show or hide the form button — making it only visible if the selected date is on or after today. You’d bring the date value over to your form submission by adding a column value in the form screen.

You could also do this by using a pre-defined list of dates in your form, and filter the choice list to only include values on or after today. This may not be feasible though unless you’re only looking to allow certain dates to be booked.

See this post for more info: [Super Simple Sign-up App with limited time slots](https://community.glideapps.com/t/super-simple-sign-up-app-with-limited-time-slots/5770)

---

<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:** [February 11, 2024, 10:58am UTC](https://community.glideapps.com/t/question-field-input-restrictions/13504/7 "2024-02-11T10:58:26Z")

</div>


