Default Element (List - Field)

Applies to: SharePoint Foundation 2010

  • Sets the default value for a field.
<Default>
</Default>

Attributes

Attribute

Description

None

N/A

Child Elements

None

Parent Elements

Field

Occurrences

Minimum: 0

Maximum: 1

Example

The following example provides descriptive text and sets the default value of the FavoriteColor field to black.

<Field Type="Text" Name="FavoriteColor">
  <Description>Enter your favorite color here. If you don’t have a 
    favorite color, enter "Black".
  </Description>
  <Default>Black</Default>
</Field>