FieldType Element (Field Types)

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.

Represents a single field type definition.

<FieldType>
</FieldType>

Attributes

Attribute

Description

None

Child Elements

Field Element (Field Types)

RenderPattern Element (Field Types)

PropertySchema Element (Field Types)

Parent Elements

FieldTypes Element (Field Types)

Remarks

FieldType elements are configured in fldtypes*.xml files in C:\Program Files\Common Files\Microsoft Shared\web server extensions\12\TEMPLATE\XML.

Example

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

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 - Definition) 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

Custom Field Classes

Custom Field Type Property Rendering

Custom Field Type Definition