function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sonatinesonatine 

lookup field of multiple objects

hi guys,

is it possible to create a lookup field that will lookup an object based on the object chosen from a picklist?

just like the one under Activities -> Task Fields -> Related To

 

screenshot:

 

SS2

 

SS1

 

or we have to make a custom field via visualforce + apex?

 

thanks in advance.

 

_Prasu__Prasu_

It is not possible from Standard Salesforce UI.

 

You will need to create those many lookup relationship on that object.

And using VisualForce + Apex you will need to simulate the same.