To add a field to a list for a document library, do the following:
- Open the Program Files\Common Files\Microsoft Shared\web server extensions\50\Templates\1033\Layouts directory.
- Copy the entire contents of the DocLib folder to the directory, renaming the copy, for example, MyDocLib.
- In the new MyDocLib directory, open SCHEMA.XML.
- Find the Fields element within the opening MetaData section. Between the opening and closing <Fields> tags, add a Field element like the following:
<Field Name="EmployeeID" DisplayName="Employee ID" Type="Number" Required="TRUE" Description="Enter the ID from your employee badge."/>