enter image description hereI have a requirement to add a custom button on the top of Salesforce besides Global Search button. Is it possible to add the button and open a visualforce page?

  • Where you want, not really... – Eric May 16 '17 at 14:38
  • @Eric I just edited the post and attached the snapshot. I want the button somewhere around red box. – Max410 May 16 '17 at 14:44
  • The only way to do it I see is to use something like a component on side bar with javascript that populates the button. – EvAzi May 16 '17 at 14:45
  • @EvAzi - Is that even possible anymore? – Eric May 16 '17 at 14:47
  • @EvAzi I think if injecting Javascript is possible then adding button will not be an issue. – Max410 May 16 '17 at 15:01

You cannot add buttons or custom elements to that region of the classic view. If you want a more 'mobile' user experience with custom navigation, consider switching to Lightning. Adding JS buttons is definitely bad practice with the rollout of Lightning and should be avoided in Classic so you don't limit yourself in the future... good food for thought to bring to your customer or client asking for this.

  • Is it impossible to add there or should I research more about it ? – Max410 May 18 '17 at 7:01
  • I am afraid it is not possible to modify the out of the box SFDC Header in the way you want. You will have to create a custom home page. I would question the use case for doing that however. – binaryLady May 23 '17 at 16:17

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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