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.
We kind of need this for Clientside Validation:
When a date is selected with the datepicker, no change event is triggered on the select boxes. This means that behaviour for the user will be different selecting the date with the select boxes or selecting it with the datepicker if modules have a function bound to the change event of that select box (like clientside validation does).
Attached is a patch that adds this feature.
Comment | File | Size | Author |
---|---|---|---|
webform_datepicker_trigger_change.patch | 838 bytes | Jelle_S | |
Comments
Comment #1
quicksketchThanks, looks like a good idea to me. I'll test this out next time I can.
Comment #2
karangarske CreditAttribution: karangarske commentedThanks. I needed this. The code works great.
Comment #3
rolando.alevelbeyond CreditAttribution: rolando.alevelbeyond commentedthis was a lifesaver for me.. thanks! definitely should commit this to the code.. i was going crazy trying to get the change function to work..
Comment #4
theunraveler CreditAttribution: theunraveler commented+1. This also helps when using things like uniform.js.
Comment #5
quicksketchThanks, finally committed as-is. This helps with conditionals in the 4.x branch also, since date fields weren't firing conditional logic when dates were changed through the calendar.