Friday, 25 June 2010

Hide Title column from a SharePoint list using PowerShell

There are a number of times where you may not want the Title column to appear in a list. It is not recommended to delete the Title column, but the following PowerShell script hides it from view in the View and Edit Item pages and also the List Settings page. Note: You will still need to remove it from all list views.

#Get web object
$web = Get-SPWeb -identity "http://portal/testsite"

#Get list and Title column
$list = $web.Lists["TestList"]
$titleColumn = $list.Fields["Title"]

#Set Title to optional and hidden
$titleColumn.Required = $false
$titleColumn.Hidden = $true

#Update Title column and list
$titleColumn.Update()
$list.Update()

#Dispose of Web object
$web.Dispose()

10 comments:

  1. How to remove the "Title" field from Default "All Items" View

    ReplyDelete
  2. Canotte 2016 nba champions Cleveland Cavalier nero LeBron James #23
    Informazioni di base:
    Formato: S, M, L, XL, XXL.
    La marca: Adidas
    Style: canotte basket
    Oggetti applicabili: Uomo
    Appartiene alla squadra: Cleveland Cavalier
    Corrispondenti ai giocatori: LeBron Jamesmaglie calcio poco prezzo,
    maglie da calcio a poco prezzo, Maglia Deportivo shop
    Maglia real madrid 2017

    ReplyDelete

  3. Our Broncos Super Bowl 50 House Flag measures 28x40 inches, is constructed of 2-ply 100% polyester, and provides a top sleeve for hanging vertically from a wood flagpole or banner pole. The Broncos Super Bowl 50 House Flag is high quality screen printed with the logo as shown.football flags sale
    house divided flags nflHouston Oilers stars and stripes flags
    Miami Dolphins banners

    ReplyDelete