Hiding Calculated Columns from Display Form

By default, the option to hide a calculated column for a content type is grayed out. Some people are able to use SharePoint Designer to hide these columns, but we kept running into an error when saving our changes.

“This column already exists in the list. Choose a different column.”

The workaround, as always, was to use PowerShell. This script also works for hiding Document ID!


Add-PSSnapin Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue

$web = Get-SPWeb "http://spsite"

$list = $web.Lists["Library"]

$field = $list.Fields["CalculatedColumn"]

#$field = $list.Fields["Document ID"]

$field.Hidden= $true

$field.Update()

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s