• Hi,

    I’m using Input WP 2.0 (Date & Time Picker) to help users select a reservation date & time on a web site.

    Because of opening hours, I have disabled each Monday of the week, resulting in not being able to select any Monday in the date & time picker, EXCEPT on Mondays.
    So if my current day happens to be a disabled day on the calendar, I can still select a time thuis sending the disabled day + time to the date selection form field.

    Does anyone have a solution or workaround for this? I have no recent coding experience, but I’d imagine this could easily be fixed by disabling the available times alltogether if the current day is disabled, or by not highlighting the current day in the calendar.

    Kind regards,
    Jan

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author inputwp

    (@inputwp)

    Hi @jashk

    Can you update to v2.1 and see if the issue still persists?

    As I understand, the issue is only for the current day, whereas for the rest of the disabled dates you cannot select either the day or the hour, right?

    Thank you!

    Thread Starter jashk

    (@jashk)

    Hi inputwp. Thanks for your quick reply!

    the issue is only for the current day, whereas for the rest of the disabled dates you cannot select either the day or the hour, right?

    This is correct.

    It would help if you would be able to check if the current day is disabled, and then disable the time selection aswell.

    Best regards,
    Jan

    Plugin Author inputwp

    (@inputwp)

    Hi @jashk

    So in here, I disabled Mondays and current day https://prnt.sc/1qhtpat

    Then in the frontend, when I open the dropdown, by default it preselected the next day https://prnt.sc/1qhtr6n

    Did you try the same and it still does show the Time for the current day?

    Thank you!

    Hi – joining in as I’m wondering the same thing. @inputwp is there an option to variably disable the “current day”? I see in your message that you disabled a specific day, but for that to work, the specific date to be excluded would have to be manually updated every day. It would be helpful if there was a checkbox to disable the current day, whichever day that may be. Thank you!

    Hi @inputwp
    Joining as this is happening on mine also.
    Disable date option in “Disable Specific Dates” but in the front end it shows the dates disabled/un-selectedable (good) but shows the time selectable.
    Customer selects the time and it inputs the date/time in the form box.

    Is there a way that to disable the times for the dates inputted in the “Disable Specific Dates” range?

    Any questions or clarity, let me know.

    V2.1 (free version)

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Date Picker selects date/time on ‘disabled’ day’ is closed to new replies.