Forums

Datepicker default to year?

andypooz 08 May, 2011
Hi, I'm loving V4 and put a little form together. I'm using the datepicker, which is excellent, but I'm using it for a date of birth field, so I'd really like to not have the default of today's date.

I've noticed if you click on the title in the middle at the top you can get a box of years, then selecting the year takes you to months and then days of that month. This would be an excellent way of people inputting their DOB, so I'd really like the calendar to open up on the years rather than users having to figure it out themselves. Any idea how I might do that?

I'm guessing it's in the javascript defaults somewhere, but I haven't been able to track it down. Any ideas my friends?

Andy
GreyHead 08 May, 2011
Hi andypooz,

Please try startview: 'year'

See this post for more info on using this and some bug fixes.

Bob
This topic is locked and no more replies can be posted.