SP.FieldLookup.primaryFieldId Property
Applies to: SharePoint Foundation 2010
Gets or sets a value that specifies the primary lookup field identifier if this is a dependent lookup field Otherwise, it is an empty string.
var value = SP.FieldLookup.get_primaryFieldId();
SP.FieldLookup.set_primaryFieldId(value);
Property Value
Type: String
Applies To
Exceptions
- [Microsoft.SharePoint.SPExceptio006E]
Not a valid GUID. Error code: -2146232832.
- [System.NotSupportedException]
When the list that this field belongs to is an external list. Error code: -1.