Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have two date fields in my form and notice that the date popup is not working for me.
I have read some issues regarding Internet Explorer, however I am using OSX and Chrome.
No console errors are showing and I am using jQuery Update running version 1.8
Comments
Comment #2
DanChadwick CreditAttribution: DanChadwick commentedWorks fine without jQuery Update. Try disabling that. If that is indeed your the cause of your issue and offer a patch offering both supported and updated version support for jQuery, I'd be happy to review it.
Alas, jQuery has a lovely habit of making incompatible changes in point releases.
Comment #3
MrPaulDriver CreditAttribution: MrPaulDriver commentedThanks Dan.
After a bit more digging, it turns out that jQuery update is not the problem but the Chosen module instead. In realty the date picker is working, but it is not updating UI of the selectors when the Chosen module is enabled.
This thread gave some clues and I was able to circumvent the problem by inserting the code below in the config pages for the Chosen module.
select:not(.webform-component-date .form-select)
Comment #4
MrPaulDriver CreditAttribution: MrPaulDriver commentedComment #5
jebeze_alexander CreditAttribution: jebeze_alexander commentedI know that this has been identified as fixed, but I have encountered the same error, but do not have the ability to easily update config. I found that it is possible to use jQuery to force an update of Chosen fields when the date picker is used. I added this as markup using the "embed code" text format. Unfortunately, there are a few additional challenges to make this happen, so not just a simple line of code.