You need to sign in to do that
Don't have an account?
srilakshmi1.387861669756762E12
how to hide "new" button on account by using home page components.
Hi,
i wrote a code like this in html area but it is not working ,i think any setting problem .please help me process to execute the below code.
<script> Sfdc.onReady(function() { var keyPrefix = 'a7m'; var toRemove = document.getElementsByName('new'); if(document.location.href.indexOf('/' + keyPrefix + '/o') != -1 && toRemove && toRemove.length) { toRemove[0].style.display = 'none'; } });</script>
and also emable the Show Custom Sidebar Components on All Pages check box but it is not working
i wrote a code like this in html area but it is not working ,i think any setting problem .please help me process to execute the below code.
<script> Sfdc.onReady(function() { var keyPrefix = 'a7m'; var toRemove = document.getElementsByName('new'); if(document.location.href.indexOf('/' + keyPrefix + '/o') != -1 && toRemove && toRemove.length) { toRemove[0].style.display = 'none'; } });</script>
and also emable the Show Custom Sidebar Components on All Pages check box but it is not working
When you say "New" button on accounts are you talking about the Account Tab?
Could you please share the screen shot of the location where you are trying to hide the new button.
This as sample code using javascript to bring up an alert message on visualforce page.