Is there a way to restrict a date based on the time of entry.

  • Profile Image
    pcschandy
    Asked 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?

  • Profile Image
    pcschandy
    Answered 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
    Jeanette
    Answered 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.