Now, for my old systemÂ the picker would pop up when the user clicked on the input field. This however would allow the user to ignore the text field and still go and type any old thing into the field. This wasn’t ideal. So my solution was to ‘disable‘ the form field and put a span next to it with an onclick event calling the date/time picker. This meant that the user was almost forced into using the nice date/time picker so dates would go in with the correct format (although that still has to be validated!).
So I started passing my nicely formatted date-time(s) through the form and
This meant that the form data was passed through as required and was nicely formatted ready for validation…Â
Liked this post? Follow this blog to get more.
Leave a Reply
You must be logged in to post a comment.