• Hello,

    I’m having a problem with min-time and max-time.

    I’m putting together a contact form to ask for an appointment. I successfully put min-date to “+3d”, which works perfectly, but I’m trying to narrow the hours to my clients opening hours. Here is my shortcode :

    [datetime* datetime-875 date-format:dd/mm/yy time-format:HH:mm min-date:+3d min-hour:8 max-hour:19 first-day:1 no-weekends]

    I tried 08:00 and 19:00, 8am and 7pm, 08 and 19, 8 and 7, +8h and +19h, none of them works, I’m still able to send the form with hours in the night, which is a big issue since my client obviously won’t take any appointments at 2am for example ^^

    Can you help me ? Is that a bug, or am I doing something wrong ?

    https://www.ads-software.com/plugins/contact-form-7-datepicker/

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have the same problem!!

    Same here, anyone have idea how to fix this?

    Hi All

    I have the same issue. I’m trying to limit the time between 08:00 and 22:00.

    This is the syntax I’ve used:

    [datetime* datetime-776 date-format:dd/mm/yy time-format:HH:mm min-date:gotoCurrent min-hour:8 max-hour:22 first-day:1 inline]

    I’ve tried different variations for min-hour and max-hour, however no joy.

    Please note though, when viewed on a mobile device, the max-hour does work (I can’t select anything past 22:00), however min-hour seems to default to 00:00.

    Fist of all thanks author for fantastic datepicker.

    I am using the latest version. Its working just fine.

    Having had the problem initially, I can also confirm the latest update (2.4.2) works fine.

    Here is the syntax I used:

    [datetime* datetime-776 date-format:dd/mm/yy time-format:HH:mm min-date:gotoCurrent min-hour:8 max-hour:21 first-day:1]

    Hope this helps.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘min-time & max-time not working ?’ is closed to new replies.