JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.
Is there a way to restrict a date based on the time of entry.Asked by pcschandy on June 23, 2015 at 02:41 PM
My users fill out a request/order and if the request is received by noon we can schedule their request the same day. The request is only for the date, NOT time. Is there a way to automatically restrict the date picker for "today" at noon? So that at 12:00, today's date is no longer available?
I've played around with trying to restrict the date using the "Limit Dates" feature on the date picker and I have several dates limited (holidays etc.) and I attempted to limit the date using "today-.5" hoping that would work but it doesn't seem to.
By the way, I cannot use the time feature because we only have orders based on date, as time is irrelevant and impossible to do with our processes.
Is this possible?
Well I guess I figured it out on my own, and I am posting my answer in case it might help someone else.
I added a 24 hr time field to my form and made the setting so that it is:
2. Auto-populates to the current time.
3. Read only.
Then I created a text field under the date field and copied it to before the submit button.
Then I created conditions for the text fields to show AND disables the Submit button, IF the current time is after 11:59 and the date selected equals "today" (using the dynamic description).
Maybe someone else can come up with something more clever but this seems to be working.
JotForm Support Manager
We really appreciate you shared your workaround with our users! That seems to be a very clever solution.
If you have further doubts regarding to this, let us know.