Saturday, September 6, 2014

How to remove the standard button loading on the custom VF page

Method 1 - Add below CSS class:


        input.btn[name="edit"] {  // removes the Edit button
            display: none;
        }
        input.btn[name="convert"] { // removes the convert button
            display: none;
        }
        input.btn[name="del"] {
            display: none;
        }
        input.btn[name="clone"] {
            display: none;
        }       
        input.btn[name="dupes"] {
            display: none;

        }

Method 2 - Add below JS function:

        window.onload = function toggleButtons() {
            window.document.getElementsByName('offline')[0].style.display = 'none';
        }

No comments: