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.
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:
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.