You need to sign in to do that
Don't have an account?

hide the recycle bin in salesforce for the 2015 edition
Is there a way to hide the recycle bin from the home page component tab?. For the 2015 edition of salesforce as the HTML area for the javascript code is not working
<script>
var sfdcOnload = self.onload;
self.onload = function() {
if (sfdcOnload) sfdcOnload();
// - hide copyright
var elements = getElementsByClassName('bPageFooter noTableFooter');
if (elements.length>0) {
elements[0].innerHTML = "Your own copyright battle cry";
elements[0].style.display = 'none'; // or this if you just don't want to see it
}
}
</script>
<script>
var sfdcOnload = self.onload;
self.onload = function() {
if (sfdcOnload) sfdcOnload();
// - hide copyright
var elements = getElementsByClassName('bPageFooter noTableFooter');
if (elements.length>0) {
elements[0].innerHTML = "Your own copyright battle cry";
elements[0].style.display = 'none'; // or this if you just don't want to see it
}
}
</script>
This is possible using Javascript and some configuration. Please follow the below steps:
1. Go to Setup--> Customize--> Home--> Custom Links.
2. Click 'New' button.
Give Label as 'Hide Recycle Bin' and Name as 'Hide_Recycle_Bin'.
Behavior as 'Execute JavaScript' and Content Source as 'OnClick JavaScript'.
Then, put the following in the below input area:
{!REQUIRESCRIPT('/resource/' & LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(NOW()),':',''),'-',''),' ',''),14) & '000/HideRecycleBin_JS')}
Click 'Save'.
3. Go to 'Home Page Components'.
In 'Custom Components' section, click 'New' button.
Name='Hide Recycle Bin', Type='Links'. Click 'Next'.
Now, add 'Hide_Recycle_Bin' from 'Custom Links not to show' to 'Custom Links to show'.
Click 'Save'.
4. Go to 'Home Page Layouts'.
Click 'Edit' button in front of the layouts one by one and Edit all the layouts and check the checkbox for 'Hide Recycle Bin'. Click 'Next'.
In the 'Order the components', make sure the 'Hide Recycle Bin' is present in the 'Narrow (Left) Column'.
Click 'Save'.
Note: Add 'Hide Recycle Bin' to only those layouts for which you have to hide the 'Recycle Bin'.
5. Go to 'Customize'--> 'User Interface'--> Under 'Sidebar' section--> Check 'Show Custom Sidebar Components on All Pages'.
Click 'Save'.
6. Now, open Developer console.
Click 'File'--> 'New'--> 'Static Resource'--> 'Name' as 'HideRecycleBin_JS' and 'Mime Type' as 'application/javascript'.
Replace the code generated from the below code:
Your 'Recycle Bin' is hidden now.
Please let me know if this helps.
Also, please mark the Question as solved if this reply solves your issue.
Thanks and Regards,
Anirudh Singh
All Answers
https://help.salesforce.com/HTViewHelpDoc?id=home_delete.htm&language=en_US
This is possible using Javascript and some configuration. Please follow the below steps:
1. Go to Setup--> Customize--> Home--> Custom Links.
2. Click 'New' button.
Give Label as 'Hide Recycle Bin' and Name as 'Hide_Recycle_Bin'.
Behavior as 'Execute JavaScript' and Content Source as 'OnClick JavaScript'.
Then, put the following in the below input area:
{!REQUIRESCRIPT('/resource/' & LEFT(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(TEXT(NOW()),':',''),'-',''),' ',''),14) & '000/HideRecycleBin_JS')}
Click 'Save'.
3. Go to 'Home Page Components'.
In 'Custom Components' section, click 'New' button.
Name='Hide Recycle Bin', Type='Links'. Click 'Next'.
Now, add 'Hide_Recycle_Bin' from 'Custom Links not to show' to 'Custom Links to show'.
Click 'Save'.
4. Go to 'Home Page Layouts'.
Click 'Edit' button in front of the layouts one by one and Edit all the layouts and check the checkbox for 'Hide Recycle Bin'. Click 'Next'.
In the 'Order the components', make sure the 'Hide Recycle Bin' is present in the 'Narrow (Left) Column'.
Click 'Save'.
Note: Add 'Hide Recycle Bin' to only those layouts for which you have to hide the 'Recycle Bin'.
5. Go to 'Customize'--> 'User Interface'--> Under 'Sidebar' section--> Check 'Show Custom Sidebar Components on All Pages'.
Click 'Save'.
6. Now, open Developer console.
Click 'File'--> 'New'--> 'Static Resource'--> 'Name' as 'HideRecycleBin_JS' and 'Mime Type' as 'application/javascript'.
Replace the code generated from the below code:
Your 'Recycle Bin' is hidden now.
Please let me know if this helps.
Also, please mark the Question as solved if this reply solves your issue.
Thanks and Regards,
Anirudh Singh