How to Hide fields of list on customized Disp/Edit/newForm.aspx in SharePoint 2013


$web = Get-SPWeb "sitename"
$list = $web.Lists["listname"]
$f = $list.Fields.GetFieldByInternalName("fieldname")
$f.ShowInDisplayForm = $false
$f.ShowInEditForm = $false

$f.ShowInDisplayForm = $false

$f.ShowInNewForm = $false; 

$f.Update()




https://social.msdn.microsoft.com/Forums/office/en-US/a62c6ff4-f079-4b4a-bee6-49d646cd7f4a/how-to-hide-fields-on-customized-dispformaspx-in-sharepoint-2010?forum=sharepointdevelopmentprevious

Comments

Popular posts from this blog

SharePoint Integration with IIS

How to Create an Auto-Incrementing Number Field in a SharePoint List

Error:Installing product D:\exchangeserver.msi failed. Fatal error during installation. Error code is 1603.