SP.FieldLookup.lookupWebId property (sp.js)
Gets or sets the ID of the Web site that contains the list that is the source of this field's value.
Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013
var value = SP.FieldLookup.get_lookupWebId ()
var value = SP.FieldLookup.set_lookupWebId ()
Return value
The value of the ID property for the Web site.
Exceptions
Exception Type |
Condition |
---|---|
The list that the field belongs to is an external list |
|
Once set, the value of the property cannot be changed. |
Remarks
The SP.BasePermissions enumeration must be set to Open to set the lookupWebId property.