Updating Column Attributes in Custom Content Type - SharePoint 2010

While working on a project SharePoint 2010 recently, i started to create Custom Content Types and deploy them as a feature in a sand box solution. As with all things that change over time, i reealized that a couple of the fields that we thought were not required were in fact required fields. No big deal, i said, opened the Elements.Xml and went to the fields and set the value of the Required attribute to "True" and deployed the solution and said to myself that i am done.
     Not so fast. When i went to the SharePoint site and looked at the content types, the two fields were still showing up as optional in the content types. After browsing through bing and google and not comming with anything, and then after trail and error found that the value of the "Required" attrubute should be set to "TRUE" and not "True". After i made this change, everything was working fine.

Comments

Popular posts from this blog

Print from WPF using ReportViewer Control

Printing SSRS 2008 R2 Reports from C#.

Using IOptions class in .Net Core Unit Testing.