XF 2.0 Custom field no date before 2006?


Well-known member
Hello, I've created in my test forum a custom user field with the birth date and set it to show date in the past.

When a user register, clicking on the year a drop down menu is shown but it's impossible to select a year before 2006, so this field is basically useless and the user has to input the date manually.

Schermata 2017-11-13 alle 13.27.25.png

How can I make this so the past years are shown?

Chris D

XenForo developer
Staff member
Bit of a tip for you: No one wants to enter their date of birth using a calendar.

Bear in mind that XF already has a date of birth field, I'm unsure why you'd need another.

Either way, the date picker isn't fit for this purpose. It will display a list of years roughly 10 years either side of the current year.


XenForo developer
Staff member
The dropdown is always 10 years either side of the currently selected year, so it is possible to select an older years, though quite tediously. It's not really designed for this particular task.


Well-known member
While I agree that nobody wants to enter a birthday using a date picker, I'd like to remind everyone that the number of years, or the range of years has been exposed in the template code for quite a while...

data-year-range="[{$data.range_low}, {$data.range_high}]"