SP.List.defaultDisplayFormUrl property (sp.js)

Gets or sets a value that specifies the location of the default display form for the list.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.List.get_defaultDisplayFormUrl ()
var value = SP.List.set_defaultDisplayFormUrl ()

Return value

Type: String

Remarks

It must not be null. It must not be empty. The client must set a server-relative URL and the server must return a site-relative URL.

REST resource endpoint

See List resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/defaultDisplayFormUrl

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/defaultDisplayFormUrl

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/defaultDisplayFormUrl