SP.FieldLookup.lookupList property (sp.js)

Gets or sets a value that specifies the list identifier of the list that contains the field to use as the lookup values.

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

var value = SP.FieldLookup.get_lookupList ()
var value = SP.FieldLookup.set_lookupList ()

Return value

The string representation of the GUID that identifies the list that is the source of information for the field. An empty string is returned if the field does not point to a list.

Exceptions

Exceptions

Exception Type

Condition

SPException

The property has already been set. You cannot change the lookup list after the LookupList property is set.

Remarks

This property returns the string representation of the source list's SPList.ID property. The LookupList property is set automatically when you create an SPFieldLookup object by calling the Boolean or AddDependentLookup(System.String,System.Guid) method of the SPFieldCollection object that represents the field collection for the list where you want to add the lookup column.