Okay
  Public Ticket #864453
Front End Editing of Dates Restricted
Closed

Comments

  •  2
    Steig started the conversation

    Hello,

    I'm adding new data to a table and need to enter birthdates of individuals. When getting to that field, a small calendar pops up to choose a date, however the year only goes back to 2006.  I need to go many years older than that. How can I achieve this?

    Thanks!

  • [deleted] replied

    Hi Steig,
    Thank you for your purchase.

    We are aware of this issue. You have possibility to enter dates before 2006 but we know that is not so UX (User Experience). You can click on year 2006 and then again when you open year select box you will be able to select years before 2006...

    We are working on new design of the plugin and we will replace datepickers with some other library that has better UX performance. 

    As a workaround you can expand that range in the following way:
    In file ../wp-content/plugins/wpdatatables/assets/js/wpdatatables/wpdatatables.js on line 615 find

    selectYears: 20,

    and replace it with

    selectYears: 100,

    Number 100 is range of years that you will be able to see in year select box. If you need more years you can increase this number.

    Please note that if you are changing wpdatatables.js you will have to unchek "Use minified wpDataTables Javascript" on wpDataTables settings page.


  •  2
    Rigo_1 replied

    sorry wrong post