Tuesday, 15 November 2011

“You must specify a value for this required field” error When edit and saving back to ShaePoint

when you edit a page that is using this Master Page.  Upon saving the page back to SharePoint you will receive an error stating “You must specify a value for this required field” and the save will fail.

The Main reason for this error was the hiding of the

When customizing SharePoint 2010 MasterPages you often don’t want certain content placeholders to show up on the page.  You should not delete or comment these elements out but instead set the visible=”false” attribute on the content placeholder.

here is The alternate way to hide this content placeholder is to create a simple CSS class containing “visibility:hidden” and referencing this class with the CssClass attribute of a new asp:panel element that contains your content placeholder.  You can hide the others in the same way as well and if you want to hide a whole group of them this may be a good way to get them all in one sweep.

Create a simple CSS class as shown below: 
Use asp:panel to hide your content placeholder(s):

<asp:panel runat="server" cssclass="hiddenpanel">
<asp:contentplaceholder id="PlaceHolderPageTitleInTitleArea" runat="server" />

After much research found the solution here
 By following this steps I was able to hide the content on the master page as I wished.

No comments:

Post a Comment