1

Was wondering if there is a way to show the button on a standard page to be available only on the top of the page instead of displaying both and top and bottom of the page.

Thanks

  • What about JS trick? I have done such kind of thing using JS script that just removes the bottom buttons by css class name. jQuery('div.pbBottomButtons').remove(); – Ruslan Vekua May 19 '15 at 16:20
  • Where would i have the js included? – Prady May 19 '15 at 16:44
  • The JS code can be placed in S-Control or just in any custom button. If you use the S-Control then you have to put it in the page layout and hide it(width: 1, height: 1) so the code should be like this var el = windo.parent.document.getElementsByClassName('pbBottomButtons')[0]; el.parentNode.removeChild(el); – Ruslan Vekua May 19 '15 at 16:53
  • 2
    I dont think this is possible – Samir Mar 23 '17 at 12:40
  • an inline VF page with JQUERY is the only option – Avijit Chakraborty Jul 1 '17 at 2:45
-1

Like Save/Edit on a VF page? apex:pageBlockButtons has a parameter location where you can specify top, bottom, or both - it defaults to both.

https://www.salesforce.com/docs/developer/pages/Content/pages_compref_pageBlockButtons.htm

| improve this answer | |
  • 1
    Yeah.. it would work on VF page. i was looking at how to do it on standard page using pagelayout or any other method – Prady May 19 '15 at 16:43
  • Question was asked for standard layout – Avijit Chakraborty Jul 1 '17 at 2:38

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.