Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It's 100% free, no registration required.

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

In Customer Portal, my search component defaults to search a particular object, based on the most recent search.

enter image description here

What should I do, so that every Customer Portal page should have this component to Search All objects, irrespective of the most recent object searched?

enter image description here

share|improve this question
Barney, are you using the standard portal functionality or Visualforce? – Wes Nolte Feb 26 '13 at 12:18
@WesNolte, I am using standard Customer Portal with the standard home page search component. It looks customized in the screenshot because I have introduced a CSS in Header. I would say that my requirement is not possible out-of-the-box, and if possible anyhow, may require dirty JavaScripting in Header. – Suman Krishna Saha Feb 26 '13 at 17:47
Exactly :) Sorry about that buddy. – Wes Nolte Feb 27 '13 at 9:51
up vote 1 down vote accepted

This requirement is not possible OOTB.

(If possible anyhow, may require introducing dirty JavaScript in the Customer Portal Header HTML. Such hacks are dirty because it involves tinkering around with HTML elements using JavaScript, by their HTML IDs. Since the HTML IDs are not documented by Salesforce, they can change the ID names in any release without informing the public, thereafter rendering the hack as broken. Hence, these dirty hacks are not future-proof.)

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.