I'm trying to make a simple date of birth cck field. When I select my birth date as 1982 and submit, everything is fine. But if I want to change the year to a later year, like 1983, I can't seem to select it, because only years before 1982 are available now. This is because I have 'years back' set to 100 and it only shows years back from the currently selected date (previously selected 1982). I want 'years back' to mean years back from 2007. Wouldn't that make more sense, or am I missing something?

Comments

karens’s picture

Status: Active » Fixed

The problem is that if you do it that way it it is possible to create a date and then come back a year or two from now and not be able to find it in the selector, so the (by design) decision was to start with the date in field as a starting point so you never find you are unable to select the current date. The only workaround for this would be to make the logic much more complex -- instead of going back xx years, go back the greater of xx years or the year in the field, and ditto on the years forward. At the moment I am working on a major re-work of the module so I'm not going to add in things like that.

However, for things like this I wouldn't use a select for the year (100 years is a *huge* select list), I would change the year to be a text field instead and then this won't be a problem. I always make dates that are more than a few years in the past into text fields.

Anonymous’s picture

Status: Fixed » Closed (fixed)