Sharepoint Services: Hiding fields in Sharepoint Display Form
// February 18th, 2010 // Sharepoint
Once again Paul Galvin’s Post on how to hide a text field definitely inspired to explore jquery and find other functions. Thanks Paul.
Hiding fields is similar again, just iterating through each form field, checking the name and hiding it. So hiding a field with the name “PAAdminStartDate”:
var K = jQuery.noConflict();
K(document).ready(function() {
K(“td.ms-formlabel”).each(function(){
if(K(this).text() == “PAAdminStartDate”){
K(this).parents(‘tr:first’).hide();
}
});
});
Dont forget to install the jQuery Smartools feature








