Default element (List - Field)

Applies to: SharePoint 2016 | SharePoint Foundation 2013 | SharePoint Online | SharePoint Server 2013

Sets the default value for a field.

<Default>
</Default>

Elements and attributes

The following sections describe attributes, child elements, and parent elements.

Attributes

None

Child elements

None

Parent elements

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>