How to prevent submission finish time is before start time

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

If you’re using a “custom form”, 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:

2 Likes

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?

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.

2 Likes

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

Please check the template here.

2 Likes

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

You have to turn this on to enable the CSS.

2 Likes

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