# How to add validation with time

**URL:** <https://community.glideapps.com/t/how-to-add-validation-with-time/35278>\
**Category:** Ask for Help\
**Created:** [November 30, 2021, 3:49am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278 "2021-11-30T03:49:08Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [November 30, 2021, 3:49am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278/1 "2021-11-30T03:49:08Z")

</div>

I’m working from this time to that time.

May be,10:00AM to 3 AM if any orders came after that,it should throw error.we cannot take orders at this time.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [November 30, 2021, 3:55am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278/2 "2021-11-30T03:55:36Z")

</div>

make the submit element visibility depend on the current time, and display text message

---

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [November 30, 2021, 4:35am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278/3 "2021-11-30T04:35:20Z")

</div>

Not understand what you are saying.can you provide me the procedure to do it.

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [November 30, 2021, 4:40am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278/4 "2021-11-30T04:40:48Z")

</div>

i assume you have to submit an order by clicking a button, so… you can make visibility conditions for this button… if the current time is \> than 10am and \< than 3am…  
and same for the text message that shows error

 ![Screen Shot 2021-11-29 at 11.44.39 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/1/8190c84f1c31b153cf7c2fad41b7d7eca6f43225.png)

---

<div class="post-metadata">

**Author:** ![Manikandan\_R](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/manikandan_r/32/43482_2.png) [@Manikandan\_R](https://community.glideapps.com/u/Manikandan_R)\
**Post date:** [November 30, 2021, 5:26am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278/5 "2021-11-30T05:26:18Z")

</div>

I will try and check.

---

<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:** [November 30, 2021, 9:04am UTC](https://community.glideapps.com/t/how-to-add-validation-with-time/35278/6 "2021-11-30T09:04:33Z")

</div>

I do something like this:

- Create a math column that will give you the hour of the day: `Hour(Now)`, where “Now” is the special now value.
- Create an if-then-else column:  
– If current hour is less than 10, then empty  
– If current hour is greater than 14, then empty  
– Else true

Now you can use the if-then-else column in a visibility condition. eg. Only accept orders when if-then-else is true
