Forums

How to clear a DateTimePicker field

dmsummers 26 Jan, 2010
I have a form that is being used to record tasks completed with DateTimePicker fields. If blank, the task is not completed, if completed, the date completed is entered. This works pretty well so far, with one exception - if the user happens to enter a date in the wrong field there doesn't seem to be a way to clear the field. You can easily change the date, but you can not remove the date, at least in it's default condition.

Is there any easy way to set up a DateTimePicker to be easily cleared by the user? I can think of maybe a few work-arounds, but before attempting them I thought I would ask to see if there was an easy solution. Am I missing something?

Just started with ChronoForms, and like what I am seeing so far.

Thanks,

-Dennis
GreyHead 26 Jan, 2010
Hi Dennis,

There's nothing built-in. I'd probably add a check-box to click with a JavaScript snippet to clear the date field. You could also have the checkbox clear when a date was entered.

Bob
dmsummers 26 Jan, 2010
Thanks Bob, thought I would probably have to do something like that. Appreciate your reply.

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