- Issue created by @janpongos
- Status changed to Postponed: needs info
over 1 year ago 9:32am 14 June 2023 - 🇺🇸United States jrockowitz Brooklyn, NY
This regression is most likely being triggered via
🐛 Setting Date/Time element min/max shows seconds Fixed
🐛 Custom Settings for date format should be removed when a field switches to "Date List" FixedCan you please share a straightforward example of a broken webform?
- Status changed to Active
over 1 year ago 11:50am 14 June 2023 - 🇺🇸United States jrockowitz Brooklyn, NY
I am not able to replicate this issue using the attached webform. I am probably missing something.
- 🇺🇸United States rromore
I am experiencing this as well. I'm using the Firefox version 114.0.2. The date input is using the browser's native functionality, rather than jQuery, and the value is being submitted in the format "Y-d-m". Like OP if I change the "date_date_format" property in the "Advanced" tab for the date webform element to "Y-m-d", the validation error disappears.
- 🇺🇸United States jrockowitz Brooklyn, NY
#6 is not the solution. We need to document how to reproduce the problem and fix the problem.
- 🇧🇷Brazil adao.boscolo
Hey guys,
I don't know if this helps, but we had this same message on the date.
Our environment is set up like this:
- Drupal core 10.1.0-rc1
- Admin Toolbar 3.4.0
- IMCE 3.0.9
- Pathauto 8.x-1.11
- Redirect 8.x-1.8
- Token 8.x-1.11
- Webform 6.2.0-beta6We are using the Olivero theme, without customizations.
This is the date field in the webform:
preferred_date:
'#type': date
'#title': 'Preferred date'
'#title_display': before
'#description_display': after
'#required': true
'#date_date_min': tomorrow
'#date_date_max': +2months
'#datepicker': true
'#date_date_format': d/m/YIf we remove the field "'#datepicker': true", the message from no longer appears. But it is not possible to set date format in UI, only in source code.
I hope this information helps with this issue.
- 🇳🇿New Zealand scrypter
In reply to #3, #4 and #8, this is a real issue. I am converting a D9 site to D10, there are many forms with dates and this country uses the dd/mm/yyyy format. The data entry will only proceed if the date_date_format is Y-m-d, but then the date is wrong on the summary, the submission and subsequent processing.
Attached .yml file of a very simple test form and screenshots of the error and the Drupal date settings.
Happy to provide anything else that would help resolve this. - 🇪🇸Spain dromansab
Hello,
I have just resolved the same problem going to field edit form > "Advanced" > "Custom settings" > "Custom properties" and setting the following value:
date_date_format: '' step: ''
- 🇳🇿New Zealand scrypter
Thanks @dromansab , that gets over the data entry error but the summary then shows the date as Mon, 08/28/2023 - 00:00 which is useless. It should be possible to set the format required, for me this is 28/08/2023. It worked fine in Drupal 9.
- 🇺🇸United States jrockowitz Brooklyn, NY
This regression is being triggered by #3254570: [Drupal 9.x] Move jQuery UI datepicker support into dedicated deprecated module. → .
If you enable the webform_jqueryui_datepicker module, the date element will start working as expected.
Still, we must prevent this unexpected regression when the webform_jqueryui_datepicker.module is disabled.
Attached is hopefully the simplest solution with the example webform, I used to replicate the issue between webform 6.1.x and 6.2.x
- Status changed to Needs review
about 1 year ago 12:05pm 3 October 2023 - last update
about 1 year ago 535 pass - last update
about 1 year ago Patch Failed to Apply - 🇳🇿New Zealand scrypter
FYI, I applied the patch 3366615-15 on local site testing upgrade from D9 to D10 with 20+ forms and it works fine, no need to remove custom '#datepicker': true from each form. Much appreciated thank you.
- Status changed to RTBC
about 1 year ago 11:22am 4 October 2023 - last update
about 1 year ago 535 pass - last update
about 1 year ago Composer require-dev failure - last update
about 1 year ago Composer require-dev failure - last update
about 1 year ago 535 pass - last update
about 1 year ago 535 pass -
Liam Morland →
committed e6b37abd on 6.2.x authored by
jrockowitz →
Issue #3366615 by jrockowitz: Check for webform_jqueryui_datepicker...
-
Liam Morland →
committed e6b37abd on 6.2.x authored by
jrockowitz →
- Status changed to Fixed
about 1 year ago 2:07pm 4 October 2023 Automatically closed - issue fixed for 2 weeks with no activity.