#1
Hi,
I want to use the datepicker for selecting someone's birthday. When the person was born in i.e. 1980 I have to walk throug all the months from today. Impossible. It is not possible to edit the input field. Maybe a suggestion for a next release: a datepicker with the possibility to change the year.
Gr. Albert
#2
Thank you. That's a good suggestion. I'll be looking into it, hopefully, within the next few weeks (datepicker usage is coming up in the Learning Zone training).

Cheers!
#3
There is a minor bug with the input field being reset on 'keyup', I fixed this a while ago but didn't create a pull request.

The problem is in trongate-datetime.js where function disableDatePickerInputs("date-picker"); tries to disable the input form but doesn't do a good job like in the time picker. The datetime input works better and does allow editing of the input field so you can easily jump into the year you want.

Here is a very quick fix that will allow you to edit the input form of a date picker.
Open trongate-datetime.js in public/js directory and disable the function by adding a 'return' at the beginning:

Now you can type the year into the input form.. I hope this helps until DC gets round to looking at this further and possibly adding a click event on the year so it can be edited inline or a popup of years so they can easily be selected with the mouse.

Cheers,
Si
#4
Thank you for the quick answer and the quick fix. Now I am able to enter years in the past.
Albert
#5
Thanks Albert, glad to help. Can you please close off the thread?