Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I added 2 RecordType values to the Account object. Now when an Account lookup is invoked from a visual force page, I would like to limit it by RecordType.

Is there a way to do this? Hopefully via apex tags?
Am I missing something simple?

share|improve this question
up vote 5 down vote accepted

In Account search settings, you can include Record Type as a field to filter on in the lookup dialog. Or you can limit the records available by using lookup filters. (The latter is configured at the bottom of the screen of the lookup field in setup.)

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.