• Konstatninos

    (@skredlemon)


    Hi and thank you in advance for your time,

    I had previously set a minimum date of +2 days, but when I came today to test my form, I realized that when the page loads the date/time picker defaults to the next available time slot 2 days from the page load. However that does not restrict me from selecting and submitting a time slot that is 2 days from now, but at an earlier time than the current time.

    For example, if I visit the page with the date/time picker on 26/04/2024 @ 13:05, and I am accepting slots every quarter (##:00, ##:15, ##:30 and ##:45), the pre-selected time slot is for 28/04/2024 @13:15. All time slots for 27/04/2024 are unavailable, but I am not disallowed to pick a slot for 28/04/2024 @ 07:00. I wouldn’t want that to be the case. I would like to be able to select a slot 48 hours from the time of page load. *

    For that reason I have tried setting the Minimum date field to “+48 hours” but that did not change the unwanted behavior. I even tried using the returned value of strtotime(“+48 hours”); 1714296590 that is. For the sake of starting over from my initial configuration, I’ve reset it to “+2 days”.

    The Disable past dates switch is selected, but it does not seem to affect past times, although it says it should.

    Here you can find a screenshot of my configuration:
    https://ibb.co/xsF2Ng7

    Would you kindly advise what I should try next?

    The page I need help with: [log in to see the link]

  • The topic ‘Disable past dates not working properly’ is closed to new replies.