philipsh

We'd like to hide the Workspace checkbox that is visible on the NewForm.aspx when adding a new event to a calendar. We want this to be a global change - so we tried to change the field's content type definition and field definition (by adding things such as ShowInNewForm="FALSE" and ShowInEditForm="FALSE") but it didn't seem to have any affect. Is there any way other than modifying the EditForm and NewForm aspx pages in Sharepoint Designer

Thanks,

Phil



Re: SharePoint - Design and Customization How to hide Workspace checkbox in calendar new event form?

philipsh

Figured it out.

Had to add the ShowInEditForm and ShowInNewForm attributes (set to "FALSE") to both the Workspace field and the WorkspaceLink fields. This is done in EventList\Events\schema.xml.





Re: SharePoint - Design and Customization How to hide Workspace checkbox in calendar new event form?

KSingle

We have wanted to do this same thing but didn't know how. I appreciated your posting, but I am not a programmer and don't understand what all you did. I did locate the xml file you referenced but I don't understand exactly what all you did here. Is there any way you can explain this so that I might understand it better. Thanks.





Re: SharePoint - Design and Customization How to hide Workspace checkbox in calendar new event form?

Bob Silva

The biggest problem with this solution is that it modifies ALL calendars. I just needed it for one calendar and I was able to create an exact copy of the real page, minus the All Day Event, Recurring and Workspace checkboxes.

You can follow this tutorial from MS to learn how.

http://office.microsoft.com/en-us/sharepointdesigner/HA101191111033.aspx

Good luck!

Bob Silva






Re: SharePoint - Design and Customization How to hide Workspace checkbox in calendar new event form?

LuilliSite

You have to edit the file in c:\program files\common files\Microsoft Shared\web server extensions\12\TEMPLATE\FEATURES\EventsList\Events called schema.xml

Yopu have to add ShowInEditForm="FALSE" ShowInNewForm="FALSE" to the line

<Field ID="{08fc65f9-48eb-4e99-bd61-5946c439e691}" Type="CrossProjectLink" Name="WorkspaceLink" Format="EventList" DisplayName="$Resources:core,Workspace;" DisplayImage="mtgicon.gif" HeaderImage="mtgicnhd.gif" ClassInfo="Icon" Title="$Resources:core,Meeting_Workspace;" Filterable="TRUE" Sealed="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="WorkspaceLink" >

so it will look like this

<Field ID="{08fc65f9-48eb-4e99-bd61-5946c439e691}" Type="CrossProjectLink" Name="WorkspaceLink" Format="EventList" DisplayName="$Resources:core,Workspace;" DisplayImage="mtgicon.gif" HeaderImage="mtgicnhd.gif" ClassInfo="Icon" Title="$Resources:core,Meeting_Workspace;" Filterable="TRUE" Sealed="TRUE" SourceID="http://schemas.microsoft.com/sharepoint/v3" StaticName="WorkspaceLink" ShowInEditForm="FALSE" ShowInNewForm="FALSE">

I knlow that its in spanish but you can see some screenshots in http://www.luillisite.com/2008/02/quitar-la-opcin-rea-de-trabajo-al-aadir.html

I hope it helps.