Jump to content

Dynamic Date From and Date to Fields for InputfieldDatetimeSelect fieldtype


Recommended Posts

Posted

Looking at the module code for InputfieldDatetimeSelect yearFrom and yearTo are set like so:

'yearFrom' => $year - 100, 
'yearTo' => $year + 20,

I wonder if there is an easy undocumented way to change this so it's dynamic from the datetime field settings page itself. Like you can with the jQuery UI datetime picker type?

Posted

Are you referring to fields that have the Datetime type? If so, have you tried enabling the "Date Picker Year Range" field by selecting any radio under the "Date Picker" field other than the "No date/time picker" option? It allows you to specify the year range before and after the current year.

image.thumb.png.14c82853aa679a9f6a54a6896a0e68ef.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...