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

5
  • 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(); Commented May 19, 2015 at 16:20
  • Where would i have the js included?
    – Prady
    Commented May 19, 2015 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); Commented May 19, 2015 at 16:53
  • 2
    I dont think this is possible
    – Samir
    Commented Mar 23, 2017 at 12:40
  • an inline VF page with JQUERY is the only option Commented Jul 1, 2017 at 2:45

1 Answer 1

-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

2
  • 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
    Commented May 19, 2015 at 16:43
  • Question was asked for standard layout Commented Jul 1, 2017 at 2:38

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .