Closed (fixed)
Project:
Webform
Version:
7.x-3.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
14 May 2012 at 15:20 UTC
Updated:
16 Jun 2013 at 06:00 UTC
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 commentedThanks. I needed this. The code works great.
Comment #3
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 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.