Set Title Field to Hidden in a Content Type

                        using (SPWeb newWeb = web.Site.OpenWeb(web.ID))
                        {
                            cT = newWeb.ContentTypes[cT.Id];
                            SPField myField = cT.Fields[field.Title];
                            cT.FieldLinks[myField.Id].Hidden = true;
                            cT.Update(true);
                            newWeb.Update();
                        }

Leave a Reply

Your email address will not be published. Required fields are marked *