I would like to add a lookup column in a SP list, which allows the user to select a specific library (rather than an item within that library).
Is this possible?
Many thanks
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It only takes a minute to sign up.
Sign up to join this communityYou cannot create a lookup for a "List name" in SharePoint.
Possible alternatives would be creating a choice column which has a list of values, or customizing the new item page (using JS link) to fetch a set of lists inside current web and display them in a drop-down.
You can take the following approach:
ListAdded
event. Develop your event receiver so that every time a list (or a library) is added to the web site a corresponding item is added to the Master list - for example the name of the list/library.That way you will have a lookup (dropdown) column with the names of the lists on your site.
And then do what? Are you going to call that list items afterwards? Please elaborate your requirement.
If you just want the list/library names in a look up field you can create a separate SharePoint list with all List Library names in a column and then call it as a lookup value.