SP.UserCustomAction.scriptSrc property (sp.js)
Gets or sets a value that specifies the URI of a file which contains the ECMAScript to execute on the page.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.UserCustomAction.get_scriptSrc ()
var value = SP.UserCustomAction.set_scriptSrc ()
Return value
Type: String
Remarks
It must be null, or a server-relative URL. It must be null if Location is not "ScriptLink". This Standard defines the ECMAScript scripting language.
REST resource endpoint
See UserCustomAction resource for more information.
Endpoint URI structure
http://<sitecollection>/<site>/_api/web/UserCustomActions(usercustomactionid)/scriptSrc
HTTP requests
This resource supports the following HTTP commands:
- POST
POST syntax
POST http://<sitecollection>/<site>/_api/web/UserCustomActions(usercustomactionid)/scriptSrc
GET syntax
GET http://<sitecollection>/<site>/_api/web/UserCustomActions(usercustomactionid)/scriptSrc