Thursday, August 14, 2008

Hide "Create Workspace" Checkbox in Calendar Event Item

So for the last 6 months I've been hitting the ground with MOSS 2007 installation of a medium-sized farm for an enterprise with some needs that cannot be met by the OOB SharePoint capabilities. Like it or not, customizations are just a necessary part of life.

An interesting requirement came up, though, with the client wanting to remove the workspace creation checkbox from the new calendar event form - that pesky button that if you check it, will kick off a meeting workspace site.

I found one very useful post by nikool123 here - I suggest you read it before continuing, as it really lays the groundwork and is 50% there. The method described by nikool123 in the article works well for publishing sites, but it does not extend to the team sites and other sites that are not using the MOSS publishing features.

Be aware that since you are modifying files on the server, your changes will be affecting your entire farm (unless you configured the server otherwise). There are actually 3 files that need to be modified in the omnipotent 12-hive directory. Find the following files in the /12/Templates/Features folder:

/12/Tempates/Features/ctypes/ctypeswss.xml
/12/Tempates/Features/fields/fieldswss.xml
/12/Tempates/Features/eventslist/events/schema.xml

Backup the files before making any changes.

Now, each file has 2 places that need to be modified. Add text

ShowInNewForm="FALSE" ShowInEditForm="FALSE" Hidden="TRUE"

within the xml schema corresponding to field IDs {881eac4a-55a5-48b6-a28e-8329d7486120} and {08fc65f9-48eb-4e99-bd61-5946c439e691}

This is guaranteed to remove the pesky "workspace" checkbox universally from Calendars on all your MOSS sites.

Happy Sharepointin'!

No comments: