You need to sign in to do that
Don't have an account?

Customizing datepicker
We have a date of birth field on a custom object. When we bind this field to an apex:inputfield the datepicker has a rather limited range of years in it. Can we specify a year for it to start with? Say 30-40 years ago? I realize that a user could just type a date in, but it inevitably ends up that the user sees the datepicker control and thinks that they need to use it to select a date. Thanks for any help.
With that safe harbour stuff said my team is well aware of the gap between what we have out there w.r.t. client side component/widget APIs and we are working on providing formal client side component APIs for future releases.
Message Edited by dchasman on 10-04-2008 06:31 AM
All Answers
Note : I started on 2014 because right now the datepicker goes to 2013 but that's not very 'Year 2009 compliant' :smileyhappy:
You'll also have to make sure that this script only runs once, and don't forget to check IE/FF compatibility.
Hope this helps,
David
With that safe harbour stuff said my team is well aware of the gap between what we have out there w.r.t. client side component/widget APIs and we are working on providing formal client side component APIs for future releases.
Message Edited by dchasman on 10-04-2008 06:31 AM
(and I'll make sure to tell people when going outside of the supported API :smileywink: )
David