In Sharepoint 2010 calendars, how can I stop users to create more than one item in the same day and hour? We'd like to prevent meeting time conflicts.
|
I think you can do this by changing the config of the calendar to a group calendar, but they would have to click the "Check Double Booking" button on the UI...i.e. enabling this feature wouldn't prevent them from saving the event/meeting, it would just warn them that there is a double-booking. Here's a walk-thru on configuring a SharePoint calendar as a group calendar:
I don't think this is a perfect solution, but it is a no-code solution. I'm not sure I would recommend an event receiver because short of throwing an unhandled exception (...ugly) there's not much you can do to provide feedback to the user on what went wrong. You might want to consider a custom SPField that simply (...and automatically) checks for the existence of a dupe event/meeting during the same time slot in it's validation event and throws an exception if there is a dupe...the exception would surface as an error message in the event item UI, giving them the opportunity to correct it. |
|||
|
|
|
There are several options to achieve that:
|
||||
|