You need to sign in to do that
Don't have an account?
How to create a "Related to" picklist lookup field
My requirement is to create a field like "Related to" in this image.
Step1: Picklist with the Objects
Step2: On select of any one object, need to display all related records

Give me quick suggestion.
Thakns Niraj
Step1: Picklist with the Objects
Step2: On select of any one object, need to display all related records
Give me quick suggestion.
Thakns Niraj
Create a picklist fields with available object names in related to and create custom lookup as mentioned in Jeff's blog (http://blog.jeffdouglas.com/2011/08/12/roll-your-own-salesforce-lookup-popup-window/).
In the javascript function: baseURL(refer blog post page: MyCustomLookup), add a parameter to dynamically load the pass the object name to the new page.
Then read objectApiName in CustomAccountLookupController to dynamically fetch the records using dynamic SOQL and List<sObject>.
Hope it helps!