SharePoint 2007 – Hiding fields on NewForm.aspx and EditForm.aspx, the easy way
One of the limiting factors in using the default forms (NewForm.aspx, EditForm.aspx) is that there is no obvious way to hide columns from appearing in the form. By default all columns in a list or document library will appear in your forms. After doing quite a bit of research on this I found a fairly easy way to hide fields by using JavaScript within the form pages themselves. In my research I found several different sets of JavaScript code, but some of the scripts are easier to implement than others. Below I provide the best and most straight forward JavaScript and some simple steps to guide you along. To hide fields in a SharePoint 2007 form, follow these steps (I will use the NewForm.aspx in my example) Open SharePoint Designer and navigate to the site that contains the list or document library you wish to customize. Expand the folder named “Forms” under the desired list or document library. You should see about seven .aspx pages (AllItems.aspx,...