Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

Fields Element (List)

Windows SharePoint Services 3

Contains field definitions within a list definition.

Attribute Description



Minimum: 0

Maximum: 1

The following example from the Schema.xml file for tasks lists specifies fields uniquely used in a tasks list.

   <Field Type="Choice" Name="Priority" DisplayName="Priority" >
         <CHOICE>(1) High</CHOICE>
         <CHOICE>(2) Normal</CHOICE>
         <CHOICE>(3) Low</CHOICE>
      <Default>(2) Normal</Default>
   <Field Type="Choice" Name="Status" DisplayName="Status">
         <CHOICE>Not Started</CHOICE>
         <CHOICE>In Progress</CHOICE>
         <CHOICE>Waiting on someone else</CHOICE>
      <Default>Not Started</Default>
   <Field Type="Number" Name="PercentComplete" Percentage="TRUE" 
         Min="0" Max="1" DisplayName="% Complete"></Field>
   <Field Type="User" List="UserInfo" Name="AssignedTo" 
         DisplayName="Assigned To"></Field>
   <Field Type="Note" RichText="TRUE" Name="Body" 
         DisplayName="Description" Sortable="FALSE"></Field>
   <Field Type="DateTime" Name="StartDate" DisplayName="Start Date">
   <Field Type="DateTime" Name="DueDate" 
         DisplayName="Due Date"></Field>
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

© 2014 Microsoft. All rights reserved.