There are many a times where we want to remove few standard buttons from page layout, but there is no such option to remove such restricted buttons. Few such buttons are …
Following is a solution which will hide “Save & Send Invitation” button on New Event page
STEP1: JAVASCRIPT Code. Create a JS file with below code
function hideBtns()
{
if(document.getElementsByName(“sendEmail”)[0]!=null)
document.getElementsByName(“sendEmail”)[0].style.display = ‘none’;
if(document.getElementsByName(“sendEmail”)[1]!=null)
document.getElementsByName(“sendEmail”)[1].style.display = ‘none’;
}
if (window.addEventListener) {
window.addEventListener(“load”, hideBtns, false);
}
else if (window.attachEvent) {
window.attachEvent(“onload”, hideBtns);
}
STEP2: Upload the JS file as a DOCUMENT
STEP3: Create a Home Page Component of type (HTML Area)
<script src=”/servlet/servlet.FileDownload?file=01530000001OcDl”></script>
Here 01530000001OcDl is ID of document created in STEP2
STEP4: Add above created Home page component in your home page layout.
That’s it you are all set, now open New Event and add invitees, automatically the “Save & Send Invitation” button will disappear.
Please note : If you have some functionality which you want to work across all pages or on every form then navigate to Setup then go to Customize->User Interface, check “Show Custom Sidebar Components on All Pages” under the Sidebar section.
Recent Comments