# How to prevent submission finish time is before start time

**URL:** <https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934>\
**Category:** Ask for Help\
**Created:** [March 24, 2025, 3:46pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934 "2025-03-24T15:46:38Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jum\_Hawani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jum_hawani/32/86426_2.png) [@Jum\_Hawani](https://community.glideapps.com/u/Jum_Hawani)\
**Post date:** [March 24, 2025, 3:46pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/1 "2025-03-24T15:46:39Z")

</div>

Hi,  
I am new in glide and I have a problem in my glide apps and haven’t found the answer yet.

My problem is how to protect or to set so that the Finish Time is not less than the Start Time when inputting the form. It may be some kind of a notification that user input the wrong Finish Time or Finish Date.

This can happen when the user enters the wrong time or wrong date and I want to protect this so the user cannot submit the form but I don’t know how.

I appreciate all of your answers

Jam Mulai = Start time  
Jam Selesai = Finish time

 ![glide input time](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/0/8093d29075c6c1baa146bdc02770f2e5a6acfb64.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [March 24, 2025, 4:05pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/2 "2025-03-24T16:05:38Z")

</div>

If you’re using a “[custom form](https://community.glideapps.com/t/how-do-i-create-a-custom-form/25014)”, you can add this condition to your button block to prevent users from submitting.

However, if you are using a native forum or edit screen, the only way to do this would be to add a hint text that displays when end date is before start date and then use this CSS trick to prevent form submission when that hint text is visible:

> [@prohibited Hacking a Form Submit Button using CSS](https://community.glideapps.com/t/hacking-a-form-submit-button-using-css/69878):
>
> wave Hey fellow Gliders! I recently came across this post by @Himaladin, and I was so impressed that I had to create a video that walked through this hack step by step—it’s incredibly clever! Using a visibility condition, a custom class, and the :has() CSS pseudo-class, you can control whether or not users can submit a form regardless of required fields! Yes, you’ll need to be on the Business plan in order to use this hack because it requires the use of CSS, but it’s a great way to control …

---

<div class="post-metadata">

**Author:** ![Jum\_Hawani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jum_hawani/32/86426_2.png) [@Jum\_Hawani](https://community.glideapps.com/u/Jum_Hawani)\
**Post date:** [March 24, 2025, 4:56pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/3 "2025-03-24T16:56:53Z")

</div>

Thanks for your great answer

The Hint works in this case, but unfortunately I don’t find Custom CSS in the Hint Options, so I still cannot prevent the form submitting when an input error occurs. I know it is because I don’t have business plan in my Glide app.

Is there any other way I can prevent submission without using CSS?  
or is it the only way?

---

<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:** [March 24, 2025, 10:46pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/4 "2025-03-24T22:46:29Z")

</div>

> [@Jum\_Hawani](#):
>
> Is there any other way I can prevent submission without using CSS?  
> or is it the only way?

Yes, with a Custom Form.  
Follow the link that Bob gave you earlier, make a copy of the concept App, and study how it works.  
The key part of it is that the selections made by a user are immediately written to the data table, so you can use them to create validation logic.

---

<div class="post-metadata">

**Author:** ![Jum\_Hawani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jum_hawani/32/86426_2.png) [@Jum\_Hawani](https://community.glideapps.com/u/Jum_Hawani)\
**Post date:** [March 30, 2025, 10:18pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/5 "2025-03-30T22:18:56Z")

</div>

I already follow the link, but still have difficulty to understand how the concept of custom form work for my Glide apps problem.

Is there Any video link to explain it or to make custom form for my problem step by step,?please.  
Just like the video that Bob share about using CSS.

Thanks in advance

---

<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:** [April 1, 2025, 12:41am UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/6 "2025-04-01T00:41:07Z")

</div>

![CleanShot 2025-04-01 at 07.39.29@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/2/a213ad53c9d20880d10aed1c79b533f66f9edb1d.png)

Please check the template here.

> **[Prevent Form Submission](https://go.glideapps.com/template/RyEnvpZcpTrYQ9fO0DAd-template-published?privateTemplateToken=XiH3D6fccsdplOOdr4uL)**

---

<div class="post-metadata">

**Author:** ![Jum\_Hawani](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jum_hawani/32/86426_2.png) [@Jum\_Hawani](https://community.glideapps.com/u/Jum_Hawani)\
**Post date:** [April 1, 2025, 1:59am UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/7 "2025-04-01T01:59:49Z")

</div>

![Screenshot 2025-04-01 085040](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/b/1b6e3591e684f208dcc01b3474bc992e78e4804e.jpeg)

I think I need to prevent submission in the beginning process form submitting

---

<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:** [April 1, 2025, 2:02am UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/8 "2025-04-01T02:02:11Z")

</div>

![CleanShot 2025-04-01 at 09.01.47@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/7/67f8547746accd11c44a80b537dbb995ee1e60c2.jpeg)

You have to turn this on to enable the CSS.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [April 16, 2025, 4:14pm UTC](https://community.glideapps.com/t/how-to-prevent-submission-finish-time-is-before-start-time/80934/9 "2025-04-16T16:14:50Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
