Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
The Form element is used to describe the forms in a base type.
Syntax
<Form
Path = "Text"
Type = "DisplayForm" | "EditForm" | "NewForm"
Url = "URL"
WebPartZoneID = "Text">
</Form>
Attributes
Name | Description |
---|---|
Path | Optional Text. Specifies the file system path, including the leaf name, of the file containing the template used for the list of document libraries that is rendered in a file dialog box. The value of this attribute is relative to the _layouts directory and does not start with a forward slash ("/"). |
Type | Required Text. Indicates the type of form being described and can be one of the following values: DisplayForm, EditForm, or NewForm. |
Url | Required URL. Specifies the path to the ASP.NET file used for the form. |
WebPartZoneID | Optional Text. Specifies the zone for the Web Part. |
Element Relationships
Parent Elements | Child Elements |
---|---|
Forms | ListFormBody , ListFormButtons , ListFormClosing , ListFormOpening |
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>