Tag Info

New answers tagged

0

Once you enabled Content Approval for your page library, you will see "Approval status" column added automatcially.


0

Try This SPList currentList = currentWeb.Lists["DocLib"]; SPField newField = currentList.Fields.CreateNewField(SPFieldType.Text.ToString(), "New Field2"); currentList.Fields.AddFieldAsXml(newField.SchemaXml, true, SPAddFieldOptions.AddToAllContentTypes); currentList.Update();


0

You can do it via feature. Check the below link, Here we are going to walk through creating a Managed Metadata column via a feature Programmatically create a Managed Metadata Column.


0

[Solved] The problem seems to come from a bug in Sharepoint where if a site column is listed a required, it will still show up as required even if the settings in the list are changed to optional. Workaround: change the site columns to optional without updating all the previous content of those columns. create the list; now those columns will be ...


1

This is a know issue with "Save Site As Template", this operation is not full fidelity Because as you said you can do it if you add the Site colum from SharePoint (from The U.I) and not from Visual Studio... Here, you can deduct that this issue is related to Visual Studio and What is happening behind the deployment Action... This Problem Has many ...


1

If you're trying this for SharePoint 2013, change "LinkToItem" to "linkToItem" <ViewFields><br/> <FieldRef Name="Attachments"/><br/> <FieldRef Name="LinkTitle"/><br/> <FieldRef Name="linkThisColumn" linkToItem="TRUE"/><br/> <FieldRef Name="data_x0020_column"/><br/> <FieldRef ...


1

to my knowledge, creating a site template is not full fidelity! so that means you loose the lookup, alerts and workflows! to get around this issue you need to use: powershell: SPBackup-site http://technet.microsoft.com/en-us/library/ff607901(v=office.15).aspx or stsadm stsadm.exe -o backup ...


1

To get the field included in ctx.currentItem it must be added to the view. So you have to make sure that the field is actually in the view you are applying the JSLink on. If this is in a list form you must make sure the "ShowInEditForm" / "ShowInNewForm" / "ShowInDisplayForm" properties (depending on which form) is set to a True on the field (you can do ...


1

I was able to remove them with one simple CSS line: #Ribbon\.EditingTools\.CPEditTab\.Paragraph\ {display:none;} credits to this blog (German) For more details on the Default Server Ribbon Customization Locations see msdn


0

they sound like custom fields. When you say deselect you mean within the view? to remove them if they are not visible within the main list settings area... first check to see if you have any content types: you should have at the top a load of urls for your list settings, below you should then have a list of content types that are linked to the list and ...


1

a coded solution. what your talking about is the field that you want hidden! SPField.Hidden() http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfield.hidden.aspx and to get the field use: Fields.GetFieldByInternalName() http://msdn.microsoft.com/en-us/library/microsoft.sharepoint.spfieldcollection.getfieldbyinternalname(v=office.14).aspx ...


0

When adding field elements to the list, or adding fieldref elements to a content type, you can add the following attributes to hide the column: ShowInDisplayForm="TRUE" | "FALSE" ShowInEditForm="TRUE" | "FALSE" ShowInListSettings="TRUE" | "FALSE" ShowInNewForm="TRUE" | "FALSE" http://msdn.microsoft.com/en-us/library/office/aa543225(v=office.15).aspx ...


1

Any document or folder in a library currently using a column will make it locked it for deletion. When trying to delete the column you should get an information message informing you that the column is in use. If the column is on a content type in the library, then first remove it from the content type and then from the library. And of course this is if no ...


1

as far as I know, site columns are wysiwyg (what you see is what you get). you have to choose whatever type you need from a limited list of types, and apply the avaible customization options. the easiest way to avoid problems is to set the column as single line of text (in which case you could set the maxlength upfront or use a formula in the list ...



Top 50 recent answers are included