|Important||This document may not represent best practices for current development, links to downloads and other resources may no longer be valid. Current recommended version can be found here.|
Field Element (Field)
This content is outdated and is no longer being maintained. It is provided as a courtesy for individuals who are still using these technologies. This page may contain URLs that were valid when originally published, but now link to sites or pages that no longer exist.
Defines the properties of a single site column.
A site column is a reusable column definition, or template, that you can assign to multiple lists across multiple SharePoint sites. Site columns decrease rework and help you ensure consistency of metadata across sites and lists.
For more information about site and list columns, see Introduction to Columns.
Required Text. Specifies the GUID of the field.
Optional Text. Specified the site column group to which this site column belongs.
Optional Integer. Specifies the maximum number of characters allowed in a field value. Edit forms are adjusted to enforce this value, which is validated on the client. If the user attempts to enter more than the number of characters set by MaxLength, an error message appears.
Optional Text. Contains the namespace that defines the field, such as http://schemas.microsoft.com/sharepoint/v3, or the GUID of the list in which the custom field was created.
Optional Text. Contains the internal name of the field.
This Field element inherits from the same complex data type as the Field Element (List - Definition) element, and as such, also contains all the attributes and child elements specified for that element. For more information about those additional attributes and child elements, see Field Element (List - Definition).
For an example of how this element is used, see Field Definition Schema.Microsoft.Win32.RegistryKey#4