Suggestion - Date Field

Permalink Browser Info Environment
It would be great to show the year drop down on the date field. Without it, it's awful to use (for example) for age.

Reference:http://api.jqueryui.com/datepicker/#option-yearRange...

You could make it a setting in the app: "Show Year" (although I'd argue that the default is to show the year, making the option "Hide Year".

Then, another option for start year and end year values.

The change is easy; line 770 in /blocks/form_with_paypal_payment/controller.php:

$("#hasDatePicker' . $dpi . '").datepicker({changeYear: true });

It would be extra cool to be able to set a range of valid years, too. For example, a the current year and only the prior 10:

$("#hasDatePicker' . $dpi . '").datepicker({changeYear: true, yearRange: \'-10:c\' });

or the prior 5 years and the next 3 years:

$("#hasDatePicker' . $dpi . '").datepicker({changeYear: true, yearRange: \'-5:+3\' });

or a specific range of years like 2002 to 2008:

$("#hasDatePicker' . $dpi . '").datepicker({changeYear: true, yearRange: \'2002:2008\' });

Type: Discussion
Status: New
zavoodi
View Replies:

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.