sharepointfiltered-lookup

sharepoint lookup field how to programmatically filter to lookup only in current document library


I want the lookup field to be filtered to only display titles from the current document library (meaning the document library that the user is currently in). I cannot specify the document library b/c I don't want to have to define a new lookup column for each new document library...instead I'm hoping to do this as a custom content type that can be used in any document library.

It would ideally be deployed as a feature.


Solution

  • Look into http://msdn.microsoft.com/en-us/library/ms446361.aspx">SharePoint Custom Fields.

    http://msdn.microsoft.com/en-us/library/ms446361.aspx