Join MSSharePointTips!

subscribe to our feed
Follow us on LinkedIn
Follow us on Twitter
 
Special Offer: Enter Our Free SharePoint Book Giveaway


Hiding Fields by Customizing Content Types in SharePoint

Written By: Rahul Mehta -- 7/27/2010 -- join -- contribute -- (0) comments -- printer friendly version

Rating: Rate

Categories: Configurations, Design, Features, MOSS 2007, WSS3

Problem

At certain times, we want to hide the details in user input forms, but also at the same time we want to maintain the data in the backend. In SharePoint we could use the list to store data. The default forms provided in the list like NewForm, Editform and others contain all metadata (fields). Now the problem is if you want to remove fields from the forms, either you need to remove columns from the list or you need to create new forms to replace the default forms.

Solution

To remove specific fields from the default list forms, we need to hide the metadata (columns) from the content type. We will walk through a sample list which contains a couple of fields in the list, but not all fields in the default forms after implementing the solution.



This list basically contains information of an employee like name, id and age. If we create a new employee in the same list, by default it would ask for all the details.



To hide any of the fields (like in my case EmpID), goto Settings > List Settings



Goto Advance settings



Select "Yes" option under the question "Allow management of content types?" to view the content type to which the field belongs.

Click for full size image

Select the content type like "Item" in my case.

Click for full size image

Select the metadata (column) you want to hide like EmpID in my case.



In "Column Settings" Category, there will be three options i.e. Required, Optional and Hidden. Select "Hidden" and press "OK" to hide the field.



Now when we go back to the new item form, the field does not show up.



With this, we could use this solution to decide what information we need users to input and what information we need to display in the default list forms provided in SharePoint.

Next Steps




Sponsor Information


Valuable SharePoint resources all for free – Check it out

SQL Server Solutions for your real world problems. Join the mssqltips community

Changing careers? Look no further


Copyright (c) 2010 Edgewood Solutions, LLC All rights reserved
privacy | disclaimer | copyright | advertise | contribute | feedback | about
Some names and products listed are the registered trademarks of their respective owners.


CareerQandA.com | MSSharePointTips.com | MSSQLTips.com