Just a suggestion - there should be an option, when creating a date via dropdown boxes, to sort the years descending, not just ascending. For forms where more young people are going to register than old, it's really frustrating for everyone to have to go all the way down to the bottom.

It's easy for the code to do this (date.inc line 214 - switch the ranges), I'd patch it if I could but I don't know where to put and store the setting for such a variable.

CommentFileSizeAuthor
#4 webform_date_year_order.patch822 bytesquicksketch
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jennypanighetti’s picture

Component: Code » User interface
quicksketch’s picture

Title: Reverse the order of the years » Reversing the order of the years doesn't work in date popup
Category: feature » bug
Priority: Normal » Minor

You can already do this by swapping the order of "Start date" and "End date" (so start at +2 years and end at -2 years for example). Unfortunately I found that this doesn't work in combination with the date popup, seems like it might be a limitation of the jQuery UI Calendar.

I'm going to move this to a bug report, since as a feature you can already do this.

jennypanighetti’s picture

Ohh, interesting. Well I was using the dropdowns anyway, so that's a big help personally. But yes it would be interesting to know if that's a limitation in jquery or something else.

quicksketch’s picture

Status: Active » Fixed
FileSize
822 bytes

The jQuery UI datepicker apparently doesn't take dates in reverse order even in the newest version, so I've committed this patch to ensure the date range is passed in the expected order.

Status: Fixed » Closed (fixed)
Issue tags: -date, -webform date, -reverse year list

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

truls1502’s picture

Issue summary: View changes

Seems this patch does not works anymore.

truls1502’s picture

Status: Closed (fixed) » Needs work

Seems this patch does not works anymore.

DanChadwick’s picture

Status: Needs work » Closed (fixed)

D6 version gets critical fixes only.