SP.ContentType.jsLink property (sp.js)

Gets or sets the JSLink for the content type custom form template.

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

Note

The JSLink property is not supported on Survey or Events lists. A SharePoint calendar is an Events list.

var value = SP.ContentType.get_jsLink ()
var value = SP.ContentType.set_jsLink ()

REST resource endpoint

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/jsLink

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/jsLink

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists(listid)/contenttypes(contenttypeid)/jsLink