What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

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.


  • Profile Image

    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?

    entry fill same today's date and
  • Profile Image

    Answered by pcschandy on June 23, 2015 at 03:13 PM

    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:

    1. Hidden

    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.

  • Profile Image
    JotForm Support Manager

    Answered by Jeanette on June 23, 2015 at 04:27 PM

    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.