SharePoint Online: How to Remove the Title Column from List?

Requirement: Remove Title column from SharePoint Online List

SharePoint Online: How to Remove Title Field from List?

When you create a new list, it comes with a “Title” column by default. You can rename the title column to something relevant to your list. E.g. I’ve created a “Metrics” list and can change the title column to “Metrics Name” or something similar. However, there are times you may want to remove the title field from the list. To remove the “Title” column from the list, do the following:

  • Navigate to your list where you want to hide the title column. Click on Settings >> List Settings
  • Click on “Advanced settings” on the list settings page >> Select the “Yes” option for “Allow management of Content types” and hit OK.
    sharepoint online remove title from list
  • Now, in the list settings page, you’ll see “Content types” link with “Item” content type >> Click on the “Item” link under Content type.
  • Click on the “Title” column link under “Columns”. This will lead you to a page where you can hide the column completely by setting “Hidden” under the “Column settings” option and hit OK.
    sharepoint online list hide title column

Now go back to the list, and you won’t see the “Title” column when you try to add/edit/view items.

One last step you may have to do is: Hide the title column from views! Under list settings, select the view which has a title column and simply unselect the title field to remove it from list views.

SharePoint Online: Hide the Title Column using PowerShell

We can hide the title column from the list using PowerShell as well:

#Load SharePoint CSOM Assemblies
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.dll"
Add-Type -Path "C:\Program Files\Common Files\Microsoft Shared\Web Server Extensions\16\ISAPI\Microsoft.SharePoint.Client.Runtime.dll"
 
#Config Parameters
$SiteURL= "https://crescent.sharepoint.com/sites/projects"
$ListName="Project Request"
$FieldName = "Title" #Display Name
 
#Setup Credentials to connect
$Cred = Get-Credential
 
Try {
    #Setup the context
    $Ctx = New-Object Microsoft.SharePoint.Client.ClientContext($SiteURL)
    $Ctx.Credentials = New-Object Microsoft.SharePoint.Client.SharePointOnlineCredentials($Cred.UserName,$Cred.Password)
   
    #Get the web, List and Field objects
    $Web=$Ctx.Web
    $List= $Web.Lists.GetByTitle($ListName)
    $Field = $List.Fields.GetByTitle($FieldName)
 
    #Hide the column from New & Edit forms
    $Field.Required = $False
    $Field.Hidden = $True
    $Field.Update()
    $Ctx.ExecuteQuery()
      
    Write-host -f Green "List Field hidden Successfully!"
}
Catch {
    write-host -f Red "Error hiding List Column: " $_.Exception.Message
}

With PnP PowerShell, It’s much simpler to hide the Title field in the list:

#Config Variables
$SiteURL = "https://crescent.sharepoint.com/sites/pmo"
$ListName = "Metrics"
$FieldName = "Title"

#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive

#Hide the field
Set-PnPField -List $ListName -Identity $FieldName -Values @{Required=$False;Hidden=$True}

If you have noticed, We have not enabled the content types on the list and set the field to “hidden” in the above PowerShell methods. In case you want to follow that approach, here you go:

#Config Variables
$SiteURL = "https://crescent.sharepoint.com/sites/pmo"
$ListName = "Metrics"
$FieldName = "Title"

#Connect to PnP Online
Connect-PnPOnline -Url $SiteURL -Interactive
$Ctx = Get-PnPContext

#Enable Content Type
Set-PnPList -Identity $ListName -EnableContentTypes $True

#Get the default content type
$ContentType = (Get-PnPContentType -List $ListName)[0]
 
#Get the Field from Content Type
$ContentTypeField = $ContentType.Fields.GetByInternalNameOrTitle($FieldName)
$Ctx.Load($ContentTypeField)
$Ctx.ExecuteQuery()
 
#Set Hidden Property of the field
$ContentType.FieldLinks.GetById($ContentTypeField.Id).Hidden = $True
$ContentType.Update($False) #Update Children 
$Ctx.ExecuteQuery()

Salaudeen Rajack

Salaudeen Rajack is a SharePoint Architect with Two decades of SharePoint Experience. He loves sharing his knowledge and experiences with the SharePoint community, through his real-world articles!

Leave a Reply