Partager via


Forms Element

The Forms element contains a collection of forms in a base type.

Syntax

<Forms>
</Forms>

Element Relationships

Parent Elements Child Elements
MetaData Form

Example

The following example outlines the forms definition within the SCHEMA.XML file for announcements lists.

<Forms>
   <Form Type="DisplayForm" Url="DispForm.aspx" WebPartZoneID="Main">
      <ListFormOpening>
         .
         .
         .
      </ListFormOpening>
      <ListFormButtons>
         .
         .
         .
      </ListFormButtons>
      <ListFormBody>
         .
         .
         .
      </ListFormBody>
   </Form>
   <Form Type="EditForm" Url="EditForm.aspx" WebPartZoneID="Main">
      <ListFormOpening>.
         .
         .
         .
      </ListFormOpening>
      <ListFormButtons>
         .
         .
         .
      </ListFormButtons>
      <ListFormBody>
         .
         .
         .
      </ListFormBody>
      <ListFormClosing>
         .
         .
         .
      </ListFormClosing>
   </Form>
   <Form Type="NewForm" Url="NewForm.aspx" WebPartZoneID="Main">
      <ListFormOpening>
         .
         .
         .
      </ListFormOpening>
      <ListFormButtons>
         .
         .
         .
      </ListFormButtons>
      <ListFormBody>
         .
         .
         .
      </ListFormBody>
      <ListFormClosing>
         .
         .
         .
      </ListFormClosing>
   </Form>
</Forms>