I would like to remove a custom button from an Account Page Layout, but only from the bottom. Exactly, it's a Detail Page Button / OnClick JavaScript. I'm trying to use this jquery I found here: Is there a way to restrict the buttons on a standard page to be top only, but it doesn't work.

What am I doing wrong? Pls, explain me, I'm quite new in this.


1 Answer 1


Earlier hack with JavaScript was being used as a workaround to hide buttons in standard page. But it was never officially supported by Salesforce.

To quote from documentation:

In Summer ’15 we will start removing unsupported code from HTML Area home page components. As a result, components that contain JavaScript, CSS, iframes, or other unsupported markup might stop working properly. To use JavaScript or other advanced HTML elements in your home page component, we recommend that you use a Visualforce Area component instead.

Refer this post for more details.

If it only needs to be in single place, I would use a custom link instead of a custom button.

  • Thanks for your suggestions. I think i will propose a custom link, too. Let's see!
    – user40993
    Commented Feb 6, 2017 at 14:42
  • Great, we should never customize the things unless its very much required :)
    – Raul
    Commented Feb 6, 2017 at 14:43
  • Exactly. Totally agree, but not my company :(
    – user40993
    Commented Feb 8, 2017 at 15:54
  • That sucks, can feel that- at one point we had to support a functionality in older version of Internet explorer!
    – Raul
    Commented Feb 8, 2017 at 15:58

You must log in to answer this question.

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