Welcome Guest Search | Active Topics | Sign In | Register

DatePicker, using a time only field, cannot clear time once set Options
PDG
Posted: Saturday, May 18, 2013 12:43:49 PM
Rank: Advanced Member
Groups: Member

Joined: 12/19/2010
Posts: 47
I use the datepicker with a time only mask: "hh:mm tt". This is for a time only field. When the user enters a time and then changes their mind and decides they no longer want a value in the time field, it is impossible to clear the old time. You can blank out the time components in the field, but when you tab to the next field the time that they entered is restored in the field. I noticed that this behavior also happens on your demonstration. Although I could not find a time only demonstration. If you enter a date into a date and time field and try and clear just the time component, it restores it as soon as the field loses focus. Needless to say this is very undesirable behavior and I am wondering if you have any suggestions for how I may allow my users to clear the time only field that uses the datepicker control?
eo_support
Posted: Saturday, May 18, 2013 2:13:52 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

Thanks for posting in the forum. This appears to be a problem. The best way to clear the DatePicker is to call setSelectedDate(null) on the DatePicker to clear it. However even so the DatePicker will still revert to 12:00 AM when it loses focus/regain focus. We will look into this and see if we can support clearing the value by directly clearing the textbox.

Thanks!
PDG
Posted: Tuesday, September 3, 2013 7:31:17 PM
Rank: Advanced Member
Groups: Member

Joined: 12/19/2010
Posts: 47
Any status on clearing the time control ... I also have a date control with a bug. Please check my post from today. I am trying to decided if these controls are essentially (pardon the pun) unusable?
eo_support
Posted: Wednesday, September 4, 2013 5:21:45 PM
Rank: Administration
Groups: Administration

Joined: 5/27/2007
Posts: 24,195
Hi,

This is just to let you know that we already have a build that has already fixed this problem and we will post it either today or tomorrow.

Thanks!


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.