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.

webform_datepicker_trigger_change.patch838 bytesJelle_S
Members fund testing for the Drupal project. Drupal Association Learn more


quicksketch’s picture

Thanks, looks like a good idea to me. I'll test this out next time I can.

karangarske’s picture

Thanks. I needed this. The code works great.

rolando.alevelbeyond’s picture

this 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..

theunraveler’s picture

+1. This also helps when using things like uniform.js.

quicksketch’s picture

Status: Needs review » Fixed

Thanks, 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.

Status: Fixed » Closed (fixed)

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