SPContentType.EditFormUrl property

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

Namespace:  Microsoft.SharePoint
Assembly:  Microsoft.SharePoint (in Microsoft.SharePoint.dll)

Syntax

'Declaration
Public Property EditFormUrl As String
    Get
    Set
'Usage
Dim instance As SPContentType
Dim value As String

value = instance.EditFormUrl

instance.EditFormUrl = value
public string EditFormUrl { get; set; }

Property value

Type: System.String
The URL for the custom Edit form template..

Remarks

This property enables you to specify a client-side redirect to a custom Edit 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 URLs 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.

See also

Reference

SPContentType class

SPContentType members

Microsoft.SharePoint namespace

MobileEditFormUrl

Other resources

Introduction to Content Types

Site and List Content Types

Base Content Type Hierarchy