Hi Rohit, What do you mean by App object. I am using Sales App where i removed Opportunity but it is displaying in Quick create drop down in left corner. Please can you help me out in detail.
You can not remove item from "Create new .." menu.
As a complex workaround you can do this using javascript. 1) write javascript to hide menu item, you could use ID attribute to identify element. 2) create Home Page sidebar component (HTML Area) and include that script in the component. 3) Once that component is present in sidebar, it will hide that menu item from dropdown.
Hi Ashish, I am thinking of this approch. But i am trying it out with some customization work which makes me easier then i go for Javascript. Fine Thank you for your answer.
Bobby, if want to remove opportunity tab that you can do this using "+" side and clicking customize my tabs at right side. move opporunity to available tabs list on next screen. If you hide opportunity tab also the opporunity quick create menu item will be hidden.
The thing is what ever tabs you see on the Objects bar they appear by default under the Create New drop down. To hide that all you need to do is click on the '+' option on the objects bar. Click on Customize My Tabs(orange colored button on the extreme right corner) and hide the objects that you do not want to see under Create new dropdown. This will eventually hide the object from the object bar and hide the object from Create new dropdown.
In case you need the object to be present on the Objects bar and dissappear from the Create new dropdown, you would need to define a visualforce page and try out the other way.
If this answered your question, please mark this as the best answer for others benefit.
Ashish, I know this but i want to show the opportunity tab but the quick create section this should be hide. So i think i should go for some Javascript work. If possible can u help me writing this javascript code to hide this opportunity from quick create section.
You can not remove the available items from "Create new " menu, It displays by default. If you dont want the entire "create new" option menu you can hide it.
i have similar requirement to remove "Account" menu-item/option from "create New.. "dropdown, i did below but it does not work for me .. can u help me on this plz ?
Action taken..
1. created custom "Home page component". called "Hide Account" 2. selected "Html Area" and pasted below code in editor section.
<script> var createNew = document.getElementById("createNewButton"); if(createNew){ var links = createNew.getElementsByTagName('a'); for(var i=0; i<links.length; i++) { var href = links[i].href; if(href.indexOf('/001/') > -1) links[i].remove(); } } </script>
Note :- id is now showing as "createNewButton" (instead of "createNewMenu") for create new drop down.
3. made this component ("Hide Account") available on home pagein left sidebar.
result - all the above code displays in the left sidebar -- on home page , but it does not remove/hide account option from create new .. dropdown .. i am not sure wether this coode is running or not on page load ?? do i need to add other code in the editor ??
Thanks,
Rohit Sharma
What do you mean by App object. I am using Sales App where i removed Opportunity but it is displaying in Quick create drop down in left corner. Please can you help me out in detail.
Thnak you,
Sreeram Dhannapaneni.
As a complex workaround you can do this using javascript.
1) write javascript to hide menu item, you could use ID attribute to identify element.
2) create Home Page sidebar component (HTML Area) and include that script in the component.
3) Once that component is present in sidebar, it will hide that menu item from dropdown.
I am thinking of this approch. But i am trying it out with some customization work which makes me easier then i go for Javascript. Fine Thank you for your answer.
Thank you,
Sreeram Dhannapaneni.
if want to remove opportunity tab that you can do this using "+" side and clicking customize my tabs at right side. move opporunity to available tabs list on next screen. If you hide opportunity tab also the opporunity quick create menu item will be hidden.
In case you need the object to be present on the Objects bar and dissappear from the Create new dropdown, you would need to define a visualforce page and try out the other way.
If this answered your question, please mark this as the best answer for others benefit.
I know this but i want to show the opportunity tab but the quick create section this should be hide. So i think i should go for some Javascript work. If possible can u help me writing this javascript code to hide this opportunity from quick create section.
Thank you,
Sreeram Dhannapaneni.
If you remove Opportunity Tab from App, it will be disappeared.
You can not remove the available items from "Create new " menu, It displays by default. If you dont want the entire "create new" option menu you can hide it.
Currently there is no such feature in salesforce.
However you can support this Idea.
https://success.salesforce.com/ideaView?id=08730000000aIZ7AAM
I am done with this requirment.
Here is the code which is working fine for me . I added this into my Home page componet. Thank you all for the support.
<script>
var createNew = document.getElementById("createNewMenu");
if(createNew){
var links = createNew.getElementsByTagName('a');
for(var i=0; i<links.length; i++)
{
var href = links[i].href;
if(href.indexOf('/006/') > -1)
links[i].remove();
}
}
</script>
Thank you,
Sreeram Dhannapaneni.
i have similar requirement to remove "Account" menu-item/option from "create New.. "dropdown, i did below but it does not work for me .. can u help me on this plz ?
Action taken..
1. created custom "Home page component". called "Hide Account"
2. selected "Html Area" and pasted below code in editor section.
<script>
var createNew = document.getElementById("createNewButton");
if(createNew){
var links = createNew.getElementsByTagName('a');
for(var i=0; i<links.length; i++)
{
var href = links[i].href;
if(href.indexOf('/001/') > -1)
links[i].remove();
}
}
</script>
Note :- id is now showing as "createNewButton" (instead of "createNewMenu") for create new drop down.
3. made this component ("Hide Account") available on home pagein left sidebar.
result - all the above code displays in the left sidebar -- on home page , but it does not remove/hide account option from create new .. dropdown .. i am not sure wether this coode is running or not on page load ?? do i need to add other code in the editor ??
please revert back ASAP. Thanks !