How to disable date range 9 months after today's date?

  • rrehab
    Asked on May 31, 2019 at 10:08 PM

    Hi there,

     

    Just wondering if the Check in Check out widget has the ability to disable date ranges?

     

    Currently we can only take reservations up to 9 months in advance in our company and certain peak date ranges are lock until we release the dates.

    With the regular Date Picker, it's very frustrating selecting check in and check out dates for our guests as the 'check out' date field goes back to the current date.

    For example, we will receive a booking form that shows:

    Check in: 01/09/2019

    Check out: 20/06/2019

    It will show September - June as guests assume the second date picker will take off straight from the first date.

     

    Is there a widget that can do what we are looking for?

     

  • Jed_C
    Replied on June 1, 2019 at 1:31 AM

    Unfortunately, check in check out widget doesn't have this feature.

    With Jotform's date picker, you can disable 9 months from today's date. Assuming that 9 months is equal to 270 days, you can add this to the date range today>today+270.

    1559367056The Easiest Online Form Builde Screenshot 10

    For reference, please check this guide https://www.jotform.com/help/337-How-to-Use-the-Date-Limits-Option.

    Let us know if you have any questions or if you need further assistance. 

  • Jed_C
    Replied on June 1, 2019 at 1:43 AM

    If you want to only enable 9 months from the start date, you can follow the steps below.

    1). Create two date picker field.

    2). Create a Start and End date for both date picker field.

    1559367682The Easiest Online Form Builde Screenshot 10

    3). Now create a condition that will copy the value of the Check in date into Check out date. 

    1559367777The Easiest Online Form Builde Screenshot 21

    You can test my sample form here https://form.jotform.com/91510648391963. Feel free to clone it https://www.jotform.com/help/42-How-to-Clone-an-Existing-Form-from-a-URL so you can see the settings.

  • rrehab
    Replied on June 1, 2019 at 8:18 PM

    THanks Jed C I will give the copying a try

  • rrehab
    Replied on July 18, 2019 at 10:53 AM

    Hi again Jed,


    I tried to add your formula below:

    "With Jotform's date picker, you can disable 9 months from today's date. Assuming that 9 months is equal to 270 days, you can add this to the date range today>today+270."


    Unfortunately this doesn't seem to work at all and I can still select dates further than 9 months in advance.


    Any suggestions?

  • Jed_C
    Replied on July 18, 2019 at 11:27 AM

    It's working on the cloned version of your form where I left only the Check in and Check out date field.

    Please check my screencast below:

    1563463601disable dates Screenshot 10

    Can you please send me a screencast on how you replicate the issue? You can use this screen recording tool http://screencast-o-matic.com/screen_recorder.

    Looking forward for your response.