Field element (Field Types Property)
Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013
Represents a variable property of a custom field type that is set when a column based on the field type is created.
<Field
Name="Text"
DisplayName="Text"
MaxLength="Integer"
DisplaySize="Integer"
Type="Text">
</Field>
Important
This topic describes markup that was used in an obsolete method of rendering custom field type properties. It is provided solely to assist with the debugging of custom field type properties developed against earlier versions of SharePoint Foundation. For information about the recommended method, see Custom Field Type Property Rendering.
Elements and attributes
The following sections describe attributes, child elements, and parent elements.
Attributes
Attribute | Description |
---|---|
Name | Required Text. The name of the property of the field type that the Field element represents. |
DisplayName | Required Text. The name of the property that appears in the UI when a column based on the field type is created. |
MaxLength | Required Text. The maximum length, in characters, of the property's value. |
DisplaySize | Required Text. The length, in characters, of the control that holds the property value in the UI. |
Type | Required Text. The underlying data type of the property's value. |
Child elements
Parent elements
Remarks
For a detailed description and example of this element in context, see PropertySchema element (Field Types).