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()

17 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
  4. by: toko alat bantu sex
    Hello sir, after I read the article you get to the bottom, It is very interesting to look at, it can provide benefits, and also the lessons, I really like it.
    so that I can remember with this master page and be back here, I leave a trail so that I could track my trail I have ever visit
    alat bantu sex pria
    alat bantu sex wanita
    I apologize if I trace unfavorable.

    ReplyDelete
  5. Jim Corbett National Park, a Project Tiger Reserve lies in the Uttarakhand. We at Jim Corbett Expert offer cheap travel plans.
    We make arrangements in Jim Corbett resorts which offer the comfortable stay at low tariffs. Check out now at
    Jim Corbett Packages

    ReplyDelete