FieldTypes Element (Field Types)

Applies to: SharePoint Foundation 2010

Represents the collection of field types.

<FieldTypes>
</FieldTypes>

Attributes

Attribute

Description

None

Child Elements

FieldType Element (Field Types)

Parent Elements

None.

Remarks

FieldType elements are configured fldtypes*.xml files in %ProgramFiles%\Common Files\Microsoft Shared\web server extensions\14\TEMPLATE\XML.

Example

The following example defines two custom field types. The example has been edited for clarity.

Important

The RenderPattern and PropertySchema elements are obsolete. They are shown here solely to assist in the debugging of custom fields that were originally developed against earlier versions of SharePoint Foundation.

Note

The possible values for the <Field Name="ParentType"> element are exactly the same as the possible values for the Type attribute of the Field Element (List) element.

<?xml version="1.0" encoding="utf-8" ?>
<FieldTypes>
  <FieldType>
    <Field Name="TypeName">SocialSecurityNumber</Field>
    <Field Name="ParentType">Text</Field>
    <Field Name="TypeDisplayName">Social Security Number</Field>
      …
    <RenderPattern Name="DisplayPattern">
       …
    </RenderPattern>
  </FieldType>
  <FieldType>
    <Field Name="TypeName">USAddress</Field>
    <Field Name="ParentType">MultiColumn</Field>
    <Field Name="TypeDisplayName">US Address</Field>
      …
    <PropertySchema>
      …
    </PropertySchema>
    <RenderPattern Name="DisplayPattern">
      …
    </RenderPattern>
  </FieldType>
</FieldTypes>

See Also

Tasks

Walkthrough: Creating a Custom Field Type

Concepts

Custom Field Types

How to: Create a Custom Field Class

Custom Field Type Property Rendering

How to: Create a Custom Field Type Definition