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

Prady
  • 12,276
  • 35
  • 131
  • 236
  • 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 01 '17 at 02:45

1 Answers1

-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

Brian Mansfield
  • 6,431
  • 5
  • 37
  • 69