SPContentType.NewFormUrl Property

Gets or set the URL of a custom New form page to use for items assigned this content type.

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)
Available in Sandboxed Solutions: Yes
Available in SharePoint Online

public string NewFormUrl { get; set; }

Property Value

Type: System.String
The URL of a custom New form page.

This property enables you to specify a client-side redirect to a custom New form page for items assigned this content type.

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 URL that you specify must be relative to the root location of the content type.

If you do not specify a custom form page, SharePoint Foundation renders the form automatically for you.

For more information, see FormUrls Schema Overview.