You need to sign in to do that
Don't have an account?

How To Add Values To Lookup Filed According to Object Selection
Hi,
I am Creating a visualforce page in which I have apex selectlist which contains the type of objects which should be selected by lookup field and show results accordingly.Below is the screenshot

I want lookup field to show values according to the value selected in selectlist.If I select Account then lookup field should show the Accounts in lookup field and vice versa.
Plz help in coding this in apex controller
I am Creating a visualforce page in which I have apex selectlist which contains the type of objects which should be selected by lookup field and show results accordingly.Below is the screenshot
I want lookup field to show values according to the value selected in selectlist.If I select Account then lookup field should show the Accounts in lookup field and vice versa.
Plz help in coding this in apex controller
You can do via rerendering the lookup field based on the selection. You need to use 2 lookup fields for this and render it based on the user selection.
Thanks,