Hi Jacob,
the date / datelist field does not validate when I set a min date and the form is submitted with this date selected.
If I select the days after, everything is well. This happens with or without the date picker and / or custom or standard date format.
Tested with the latest dev.

  check_in:
    '#type': date
    '#title': Check-In
    '#default_value': '+2 days'
    '#title_display': before
    '#required': true
    '#min': '+2 days'
    '#max': '+1 year'
    '#date_date_format': d.m.Y

Is a bug or something in my settings?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

SoYeah created an issue. See original summary.

jrockowitz’s picture

Attached webform replicates the issue.

jrockowitz’s picture

Status: Active » Needs review
FileSize
3.09 KB
jrockowitz’s picture

SoYeah’s picture

The patch works as expected.
Thanks for the quick work.

  • jrockowitz committed afe9f3b on 8.x-5.x
    Issue #2932477 by jrockowitz, SoYeah: Min date does not validate when "...
jrockowitz’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.