Sharing the Point

Office 365, SharePoint, Project Server – Blog

Posts Tagged ‘SharePoint’

SharePoint List- Show Hide List Column Using Powershell

Posted by Ashraf on May 18, 2012

Show/hide SharePoint list column in New/Edit form Using Powershell script

First get the website URL, list name and column objects

$webUrl = Get-SPWeb http://dev-pc/sites/dc

$listName = $web.Lists["Projects"]

$columnName = $list.Fields["Project Description"]

If you want to hide the column from Edit Form then Change the ShowInEditForm property and update objects

$columnName.ShowInEditForm = $false

If you want to hide the column from New Form then Change the ShowInNewForm property and update objects

$columnName.ShowInNewForm=$false

$columnName.Update()

$listName.Update()

$webUrl.Dispose()

Please change the WebUrl, list name and column name values as per your environment. To show the column just replace the $false values to $true.

..Sharing the Point>>

Posted in SharePoint | Tagged: , | Leave a Comment »

Office 365 SharePoint list – Hide a column from New, Edit form

Posted by Ashraf on April 27, 2012

I have a custom list and I want some columns not to be displayed on the New Item form or Edit form. The following workaround will help to achieve this without any coding.

1. Go to list settings, under general settings click Advanced settings.

2. Click Yes on the “Allow management of content types? ” and click Ok.

3.  Then from the Content type section click on the item content type.

office365_item_content_type

office365_item_content_type

4. Now click on the column you want to hide ad you will get the following screen to choose hide option.

office365_item_content_type_hide_column

office365_item_content_type_hide_column

Hope this helps.

Posted in Office 365, SharePoint | Tagged: , , | Leave a Comment »

 
Follow

Get every new post delivered to your Inbox.

Join 59 other followers