views:

181

answers:

2

Hi All,

I would like to display a DatePicker where the year field would be visible or not, according to a checkbox.

But I didn't find anything giving me a way to implement it.

Any idea please ?

Thanks in advance.

A: 

I think the Any+Time™ DatePicker/TimePicker AJAX Calendar Widget might work for you. It has the ability to chose which fields to use and a friend told me it works well on his Android phone. Simply test whether the checkbox is checked and then create the picker with a format string that either does, or does not, contain a year specifier, accordingly.

Andrew M. Andrews III
Thanks but I don't want to mix my code with javascript, I think it would complicate too much my application.
kosokund
A: 

As it's not possible to remove the year field from a DatePicker, I finally decide to add a CheckBox "ignore the year field" in order to implement a solution.

kosokund