SharePoint List Hide Title Column

This SharePoint customization tutorial, we will discuss how to work with the SharePoint list title column. We will see how to hide title column in SharePoint list. Also, how to remove or rename list title column in SharePoint Online list.

Also, we will see how to hide or remove SharePoint Online list title column programmatically using PnP CSOM.

SharePoint List Title Column

When you will create a custom App by default it will add one column name as Title and the data type is a single line of text. But sometimes the column name does not suite to your business requirement.

SharePoint does not allow us to delete the column neither it allows us to change the data type of the column. But we can rename Title column, hide Title column and we can also make Title columns as not required.

Let us first create a custom SharePoint app by going to Add an app from the gear icon settings menu. Then choose the Custom List template from there. Then give a name for the app.

You can see there will be one column name as “Title” which looks like below:

sharepoint title column not required
sharepoint title column not required

Rename SharePoint List Title Column

To rename SharePoint list Title column, go to the List Settings page and then under the Columns section click on the Title column. Then change the Column name like below:

hide title column sharepoint 2013
hide title column sharepoint 2013

Then Save and the new column name will get reflected. Remember it will just change the display name of the column but the internal name will be same. The column will appear like below:

rename title column sharepoint list
rename title column sharepoint list

SharePoint list hide title column

To hide SharePoint list title column and to make the title as not required field follow the below step.

Open SharePoint List Settings page and from the list settings page click on “Advanced settings” link which is under the General Settings section.

Then in the Advanced Settings page, in the Content Type section select Yes on “Allow management of content types?” like below:

remove title column from sharepoint 2013 list
remove title column from sharepoint 2013 list

Then go back to the Settings page and you can see the Item content type link under the Content Types section like below:

sharepoint title column not required
sharepoint title column not required

Once you click on the content type you can see the Column in the Columns section of the Content type.

sharepoint list change title column
sharepoint list change title column

Since we have renamed the column name it is displaying as First Name else the column name will come as Title.

Then in the Change Content Type Column page, in the Column Settings, you can make your column as Required, Hidden or Optional as shown in the fig above. Once you choose the Option-click on OK. It will save the changes.

Rename or hide/remove SharePoint List Title Column Programmatically using PnP CSOM

Now, we will how to remove or hide SharePoint Online List “Title” Column programmatically. How to rename SharePoint Online List “Title” Column using PnP CSOM programmatically.

For this requirement, I have a SharePoint Online List as “TSInfo Project“. In this SharePoint Online List, I have totally four columns including “Title” column which is by default.

Here first, I will show you how to hide/remove this SharePoint Online List “Title” column from the List content type. And in the second part, I will show you how to rename this “Title” column in the List Content Type using PnP SharePoint CSOM library.

Remove or hide SharePoint List Title Column Programmatically using PnP CSOM

Here we will see how to remove or hide SharePoint Online ListTitle” Column programmatically from the List content type. Before hiding the Title column from List content type, It looks like below screenshot:

Remove SharePoint List Title Column Programmatically using PnP CSOM
Remove SharePoint List Title Column Programmatically using PnP CSOM

CSOM Code to Hide SharePoint Online List Title Column

public void HideTitleColumn()
        {
            try
            {
                AuthenticationManager authManager = new AuthenticationManager();
                var context = authManager.GetWebLoginClientContext
("SiteURL");
                Field field = context.Web.Lists.GetByTitle("TSInfo Project").Fields.GetByTitle("Title");
                context.Load(field);
                context.ExecuteQuery();
                field.Hidden = true;
                field.Update();
                context.ExecuteQuery();
                lblMessage.Text = "Title hidden successfully";            
            }
            catch (Exception)
            {
                throw;
            }
        }

Hence I have written this CSOM Code in button click, So when I clicked to button, then the code executed. Once the code will execute, it will appear like the below screenshot:

Remove SharePoint List Title Column Programmatically using CSOM
Remove SharePoint List Title Column Programmatically using CSOM

Here in this above CSOM Code, I have used a Label Toolbar to show the status message. I have written this label message in CSOM Code, that’s why the status message is showing as like “Title hidden successfully“.

Finally the result will display as shown in below:

Hide SharePoint List Title Column Programmatically using PnP CSOM
Hide SharePoint List Title Column Programmatically using PnP CSOM

In this above screenshot, You can see the “Title” column is removed from the List Content Type.

Rename or Hide SharePoint Online List Title Column Programmatically using PnP CSOM

Here we will see how we can rename or hide SharePoint Online List “Title” Column programmatically in the List Content Type. Before renaming the Title column in the List Content Type, It looks like below screenshot:

Remove SharePoint List Title Column Programmatically CSOM
Remove SharePoint List Title Column Programmatically CSOM

CSOM Code to Rename or Hide SharePoint List Title Column

public void RenameTitleColumn()
        {
            try
            {
                AuthenticationManager authManager = new AuthenticationManager();
                var context = authManager.GetWebLoginClientContext
("SiteURL");
                Field field = context.Web.Lists.GetByTitle("TSInfo Project").Fields.GetByTitle("Title");
                field.Title = "Project Title";
                field.Update();
                context.ExecuteQuery();
                lblRenameMessage.Text = "Title Renamed Successfully";
            }
            catch (Exception)
            {
                throw;
            }
        }

Hence I have written this CSOM Code in button click, So when I clicked to button, then the code executed. Once the code will execute, it will appear like the below screenshot:

sharepoint rename title column using programmatically pnp csom
sharepoint rename title column using programmatically pnp csom

In this above CSOM Code, I have used a Label Toolbar to show the status message. I have written this label message in CSOM Code, that’s why the status message is showing as like “Title Renamed successfully“.

Finally the result will display as shown in below:

sharepoint rename title column using programmatically csom
sharepoint rename title column using programmatically csom

In this above screenshot, You can see the “Title” column is renamed as “Project Title” in the List Content Type.

Make SharePoint List Title Column Optional Programatically

Now, we will see how we can make SharePoint list Title column optional programmatically using PnP CSOM.

public void MakeTitleColumnOptional()
        {
            try
            {
                AuthenticationManager authManager = new AuthenticationManager();
                var context = authManager.GetWebLoginClientContext("https://onlysharepoint2013.sharepoint.com/sites/TSInfoTeam");
                Field field = context.Web.Lists.GetByTitle("TSInfo Project").Fields.GetByTitle("Title");
                context.Load(field);
                context.ExecuteQuery();
                field.Hidden = false;
                field.Required = false;
                field.Update();
                context.ExecuteQuery();
                lblMessage.Text = "Title hidden successfully";            
            }
            catch (Exception)
            {
                throw;
            }
        }

Once you run the above code, the Title column will become optional.

Make SharePoint List Title Column Optional Programmatically
Make SharePoint List Title Column Optional Programmatically

Read some SharePoint tutorials:

I hope this article will be helpful to change, rename or hide SharePoint list title column.

>