Share via


FormUrls Schema Overview

Applies to: SharePoint Foundation 2010

Available in SharePoint Online

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:

  • 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 SharePoint Foundation 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 SharePoint Foundation 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, SharePoint Foundation uses the default values. In that case, SharePoint Foundation 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.

<FormUrls
xmlns="https://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

Concepts

Introduction to Content Types

Custom Information in Content Types

FormTemplates Schema Overview