• Resolved pog21

    (@pog21)


    Hi,

    I’m adding a date-picker field being used for Date of Birth, which needs to span a wide range of years (1900-2016)

    Currently, the ‘year’ drop-down shows about 10 years when you click on it. To go further back you have to choose the earliest year, then re-open the drop-down and choose the earliest year again. This has to be repeated until the required year is reached.

    How can I change this to show either a much larger number of years or to make it scroll?

    Thanks for any help.

    Oliver

Viewing 1 replies (of 1 total)
  • Thread Starter pog21

    (@pog21)

    FIXED

    For anyone else facing this issue, here’s what I did. Go to:

    assets > customerJs > app.js

    Find the function initDatePicker() and add the following to the list of object properties:

    yearRange: '1900:2016'

    This makes the ‘year’ drop-down of the date-picker scroll between those dates, which is much better usability.

    I think this is what the max/min dates in the settings should be doing. Especially as I had to hack the plugin files to achieve this.

    Cheers,
    Oliver

    • This reply was modified 7 years, 4 months ago by pog21.
Viewing 1 replies (of 1 total)
  • The topic ‘Increase date-picker year range’ is closed to new replies.