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
Post a Comment