function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
JayaJayaJayaJaya 

How to hide New Event button from Home Page?

Hi,
Is there any possibility to remove/hide  "New Event" button from Home Page?

User-added image

Thanks.
Himanshu ParasharHimanshu Parashar
Hi Jaya,

There is no direct way to remove that button but we can remove that button using adding home page component in sidebar and remove that using javascript.

so you will follow below steps.

1. Create new Home Page component visualforce type
2. Add following jquery in
 
$(".btn" ).each(function( index ) {
    if($(this).attr('name')=='New Event'){
      $(this).remove();
    }
});
3. Add this component to home page layout.

Thanks,
Himanshu
Salesforce Certified Developer | Administrator | Service Cloud Consultant

P.S. If my answer helps you to solve your problem please mark it as best answer. It will help other to find best answer.
 
Mudasir WaniMudasir Wani
Hi Jaya,

It is not possible using configuration.
You can achieve using customization.

Solutions :
1. Add a home page component and using javascript of JQuery hide the "New Event" html.
                                    or 
2. Remove the calander and create a custom functionality using Visualforce and Apex and add the same to your home page components.

Hope this helps.

Please mark this as solution if this solves your problem, So that if anyone has this issue this can help.
 
Michael HaaseMichael Haase
Hi Himanshu!

Could you be more specific how to do that? Make all as you write but nothing happens.