Show/Hide Fields

Installation

Copy the solution to the server and use stsadm or powershell to add solution to solution gallery.

Enabling

For the specific web application, enable the web application feature "SPC3 ShowHideFields Breadcrumb"
For the specific site collection, enable the site collection feature "SPC3 ShowHideFields"

sitecollectionfeatures.png

Using


Navigate to any list or document library.
In v4 visual styles, a new ribbon tab called "Extended" will display.

extendedtab.png

In v3/v4 visual styles, a new action under list settings -> general settings will display.

listsettings.png

Use the configuration screen to show/hide your fields.
Hidden fields will display in the list, but not be editable
ReadOnly but not Hidden fields will display in the list, but only the view forms will be editable.
Most of the forms use a nullable boolean (bool?), so a tri-state radio button is required.

showhidefields.png

Powershell

This can be done in powershell, but requires server access

$list = (Get-SPWeb "http://yoursite").Lists |? {$_.Title -eq "yourlist"}
$field = $list.Fields"yourfield"
$field.ShowInNewForm = $false
$field.ShowInEditForm = $false
$field.ShowInDisplayForm = $false
$field.Update()

Last edited Jan 10, 2011 at 1:13 AM by djeeg, version 3

Comments

Garu211 Mar 21, 2011 at 3:37 AM 
That's great, but it seems that the attachment can't be hide.
do you have any solution?