FormUrls Schema Overview

The FormUrls Schema describes optional XML you can include in a content type as custom information. This XML node must be stored within an XMLDocument element in the content type definition. For more information, see Custom Information in Content Types.

This schema enables you to specify client-side redirects to different Display, Edit, and New form pages for items of this content type.

The schema has the following elements:

  • FormUrls   The root element. The FormUrls element has the following attribute:

    • xmlns   Required Text. Represents the XML namespace of the schema. The namespace for this schema is:

      http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url

  • Display   Optional Text. Specifies the URL of the custom Display form page to use.

  • Edit   Optional Text. Specifies the URL of the custom Edit form page to use.

  • New   Optional Text. Specifies the URL of the custom New form page to use.

Form pages are .aspx pages that replace the entire default Windows SharePoint Services page, including the framing elements, or chrome, such as top and side navigation bars. For form pages, you must create any navigational links or other elements you want that are usually found in the Windows SharePoint Services chrome.

The URLs you specify must be relative to the root location of the content type.

If you do not include this XML document in your content type definition XML, Windows SharePoint Services uses the default values. In that case, Windows SharePoint Services renders the forms automatically for you.

The following example specifies custom client-side redirects to different Display, Edit, and New form pages for items of this content type.

Xml
<FormUrls
xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url"
<Display>Forms/mydisplayform.aspx</Display>
<Edit>Forms/myeditform.aspx</Edit>
<New>Forms/myuploadform.aspx</New>
</FormUrls>

See Also

Tags :


Community Content

Thomas Lee
small gramatical error in sample code
Note: the above sample is lacking a closing > on the initial FormUrls element.

<FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
<Display></Display>
<Edit></Edit>
<New></New>
</FormUrls>

Stanley Roark
Full Examples of FormUrl and FormTemplates (that work)

Note the namespace/url difference between the Formurl and the FormTemplates. It can trip you up:

<XmlDocuments> 
<XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
<FormUrls xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms/url">
<Display>_Layouts/xyzCorp/BZH_xMgt.aspx</Display>
<Edit>_Layouts/xyzCorp/BZH_xMgt.aspx</Edit>
<New>_Layouts/xyzCorp/BZH_xMgt.aspx</New>
</FormUrls>

</XmlDocument>


<XmlDocument NamespaceURI="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
<FormTemplates xmlns="http://schemas.microsoft.com/sharepoint/v3/contenttype/forms">
<Display>BZH_ListForm</Display>
<Edit>BZH_ListForm</Edit>
<New>BZH_ListForm</New>
</FormTemplates>
</XmlDocument>
</XmlDocuments>

Page view tracker