O'Reilly logo

Visualforce Development Cookbook by Keir Bowden

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Adding a custom lookup to a form

The Salesforce standard lookup functionality renders a dialog that supports a small amount of customization. The fields displayed may be configured, and if Enhanced Lookups have been enabled, the results can be filtered and ordered, and large result sets may be paged through. The lookup dialog's layout can neither be altered, nor can it be branded or contain additional help text.

In this recipe we will create a Visualforce lookup page that replaces the lookup dialog and provides additional instructions to the user. An additional Visualforce page will demonstrate how this can be be integrated into a custom opportunity create page.

Getting ready

This recipe makes use of a custom controller, so this will need to be ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required