Date widgets should stop user choosing an ending date before their starting date

Description

At present, if a user specifies an end date before the release date, they see an error message:

"Alert: You cannot specify an ending date before its release date!"

It would be much better if the date widgets were intelligent and stopped people doing this.

Our administrators report that this is a real problem for them in autumn! They open an announcement in Sept 07, and want to close in Feb 08 - but they always forget to change the year of the closing date and get an error message.

Activity

Show:

Peter Knoop January 6, 2008 at 1:20 PM

See for further progress on this issue.

Peter Knoop December 24, 2007 at 1:46 PM

Picking a date in Sakai often coincides with picking a time on that date too, so the logic of greying-out or hiding invalid options should probably be extended to time selection as well.

Harriet Truscott December 21, 2007 at 9:47 AM

Sure!

There's a nice example here: http://www.thalys.com/fr/en/

Use the calendar icon to open the pop-up calendar widget and set your departure date.

Now click on the calendar icon by the return date. When you click on it, you'll see that the dates prior to your return date are crossed out and are not available to choose.

I'd like to see something similar to this for the pop-up calendar widget, so the previous days are made clearly unavailable.

I also rather like this date picker, which pops up a calendar widget when you click in the date setting box, but which still allows you to type in your date - so much quicker than pulling it from a drop-down list.

http://www.nationalexpress.com/

Peter Knoop December 21, 2007 at 9:32 AM

Harriet, could you describe the intelligent behavior you would like to see here? The error message already stops them for proceeding until they fix the bad date. Are you thinking of something along the lines where functionality is added to the date widget to update the selection options for the End date based on what the user is entering for a Start date? That way it would be impossible to even reach the error message step?

Incorporated

Details

Priority

Components

Assignee

Reporter

Created December 6, 2007 at 10:42 AM
Updated October 23, 2008 at 6:05 AM
Resolved January 6, 2008 at 1:20 PM