默认元素 (列表 - 字段)

适用于: SharePoint 2016 |SharePoint Foundation 2013 |SharePoint Online |SharePoint Server 2013

为字段设置默认值。

<Default>
</Default>

元素和属性

下面各部分介绍了属性、子元素和父元素。

Attributes

子元素

父元素

出现次数

  • 最小值:0
  • 最大值:1

示例

下面的示例提供了说明性文字并将 FavoriteColor 字段的默认值设为黑色。

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