Comments on: Hide Edit/Del Links on Salesforce Standard Page https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/?utm_source=rss&utm_medium=rss&utm_campaign=hide-edit-del-link-on-salesforce-standard-pages Technology, Travel, and Pictures Tue, 05 Jun 2018 00:35:57 +0000 hourly 1 https://wordpress.org/?v=6.0.1 By: Justin Silver https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-2577 Tue, 05 Jun 2018 00:35:57 +0000 http://justinsilver.com/?p=3831#comment-2577 In reply to Garima Chaturvedi.

I think no? But this stuff is more easily done with Lightning.

]]>
By: Garima Chaturvedi https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-2576 Mon, 04 Jun 2018 08:19:30 +0000 http://justinsilver.com/?p=3831#comment-2576 Hi Justin,
Is this still working?

Thanks,
Garima

]]>
By: Justin Silver https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-2491 Thu, 07 Dec 2017 20:21:53 +0000 http://justinsilver.com/?p=3831#comment-2491 In reply to eugene.

Hi Eugene,

Unfortunately this doesn’t seem to be working with the latest release of Salesforce – it’s also a bit moot if you can use Lightning.

Thanks!

]]>
By: eugene https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-2324 Mon, 30 Jan 2017 17:43:51 +0000 http://justinsilver.com/?p=3831#comment-2324 Good day! I’m trying to remove the “Submit for Approval” button using the above instruction, but I cant seem to make it work. Any help? Here is my jQuery:

jQuery(document).ready(function($){
if(window.location.href.indexOf(“.com/0Q0”) != -1) {
$j(document).ready(function() {
$j(“input[name=’piSubmit’]”).hide();
});
}
});

]]>
By: Justin Silver https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-1959 Fri, 14 Aug 2015 18:25:43 +0000 http://justinsilver.com/?p=3831#comment-1959 In reply to indira.

Upon further investigation, it looks like quite a few things have changed that make this post not valid. It’s still possible to use the Base64/Custom Link JavaScript injection, but jQuery isn’t available, etc so you will have to include it if you want to use it. This can be included in Home Page Layout easily, and on Detail pages, but Tab Home Pages will require a VisualForce page (in which case you could include the JavaScript directly).

Here is some sample code I was playing around with if you want to try it:

function hide_edit_del_links(){
	jQuery(document).ready(function($){
		// hide the Edit/Del links
		jQuery(document).
		jQuery('.x-grid3-td-ACTION_COLUMN').hide();
	});
}
if (typeof jQuery == 'undefined'){
	var script = document.createElement("script");
	script.setAttribute("src", "//ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js");
	script.addEventListener('load', function(){
		hide_edit_del_links();
	}, false);
	document.body.appendChild(script);
} else {
	hide_edit_del_links();
}

I will write a new post with some updates soon.

]]>
By: Justin Silver https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-1958 Fri, 14 Aug 2015 17:41:32 +0000 http://justinsilver.com/?p=3831#comment-1958 In reply to indira.

I just noticed that the single quotes in the textarea were being converted to weird characters which might have caused your syntax error. That said, just copying that code will not work as you need to specify the HTML/DOM ID for the related list you want to hide – this won’t remove them for all lists. Once you have done that you need to generate your own Base64 encoded version, then include it using REQUIRESCRIPT, and make sure that it is using single quotes.

]]>
By: Justin Silver https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-1957 Thu, 13 Aug 2015 21:57:11 +0000 http://justinsilver.com/?p=3831#comment-1957 In reply to indira.

Hi Indira,

It’s hard to say what the problem might be without seeing your code. I can attest to this hack working when I wrote the article 🙂

Justin

]]>
By: indira https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-1956 Thu, 13 Aug 2015 21:36:23 +0000 http://justinsilver.com/?p=3831#comment-1956 the custom link is not getting saved as we are getting syyntax error,

]]>
By: Justin Silver https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-1903 Mon, 27 Apr 2015 18:50:13 +0000 http://justinsilver.com/?p=3831#comment-1903 In reply to Apurva.

Apurva,

Do you see any JavaScript errors, or does it must not work? Note that you can’t copy my code exactly, if you aren’t seeing any errors my guess is that you aren’t using the correct ID – you have to use the ID of the top level element of the table you want to hide the edit/del links on. If that doesn’t work you could try starting with just Base64 encoding “alert(‘hello world’);” to make sure you can run any JavaScript at all.

Good luck!

]]>
By: Apurva https://www.justinsilver.com/technology/salesforce/hide-edit-del-link-on-salesforce-standard-pages/#comment-1899 Fri, 24 Apr 2015 18:15:18 +0000 http://justinsilver.com/?p=3831#comment-1899 This somehow doesn’t seem to work for me. Do you have any other solution? Probably javascript or something? I am in urgent need for a solution to hide the edit/delete links on account related list.

Pls help!

]]>