Share via


ListForm Element

The ListForm element renders a form for the particular list specified by a previous SetList statement. See example.

Syntax

<ListForm
  Type = "DisplayForm" | "EditForm" | "NewForm" | "NewFormDialog">
</ListForm>

Attributes

Name Description
Type Required. Specifies the type of form that is defined. Can be one of the following values:
  • DisplayForm The form used to display an item in a list.
  • EditForm The form used to edit an existing item.
  • NewForm The form used to create a new item.
  • NewFormDialog Used only for document libraries, specifying the form that is used as the property dialog box in client-side applications when a file is saved to a document library.
Parent Elements
XML

Example

The following example renders the complete form of the Announcements list.

<ows:XML>
  <SetList> Announcements
  </SetList>
  <SetVar Name="DisplayMode" Scope="Request">
    Display
  </SetVar>
  <ListForm Type="DisplayForm"/>
</ows:XML>

See Also

SetList