Is it possible to limit to weekdays only?

  • lvacademy
    Asked on November 3, 2016 at 8:21 PM

    Is it possible to limit to weekdays only? I disabled weekends, but I need the form to only allow them to choose a date that is 3 days from today. This works out great, except if they choose a Thursday, it lets them choose Monday. I'm thrilled to have this as an option so thanks for that!

  • Support_Management Jotform Support
    Replied on November 4, 2016 at 12:01 AM

    Hello @lvacademy, we'd like to better understand what exactly you need. You said you need the Date Field to do the following:

    1. Disallow weekends (meaning no one can pick Sun and Sat)

    2. The start date should be 3 days from today

    I created a test form but instead of 3 days from today, I've set it up as today+5

    Is it possible to limit to weekdays only? Image 1 Screenshot 30

    And it works as intended (note that my local date right now is Nov 4, Fri):

    Is it possible to limit to weekdays only? Image 2 Screenshot 41

    Is there anything wrong with how you're expecting it to work?

    Also, we can help you better if we know the form you're currently working on. Just get back to us with a bit more info, screenshots will be highly appreciated, along with the Form ID/URL so we can have a closer look.

  • signsman
    Replied on June 8, 2017 at 11:16 AM

    If I tell it to disable weekends, but then set the Disable Date Ranges to

     

    0000-01-01>today+3

     

    Then it counts the weekends in the "+3" days. For instance, if it's currently Thursday they will be able to select Monday as the next available date.  But the next available date, excluding weekends, should be Tuesday.

     

    So how do you get the "Today+3" to NOT count the disabled weekends when figuring the +3?

  • Welvin Support Team Lead
    Replied on June 8, 2017 at 12:59 PM

    @signsman: In order for us to assist you to properly, I have created a new thread for your question. Here's the link https://www.jotform.com/answers/1167581