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
ying.ax1897ying.ax1897 

salesforce Hide Edit|Del on ListView

Hi,

 

I want to hide the Edit|Del in the list view just for one object.

And user still have the permission to edit or delete the object.

Is it possible?

 

Thanks.

Ashish_SFDCAshish_SFDC

Hi Ying, 

 

Solution is to use jQuery to quickly select and hide all elements that had a class of “actionLink”:

 

<apex:page tabStyle="Workshops__tab">

<apex:includeScript value="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"/>

<apex:sectionHeader title="Data Entry Portal" subTitle="Workshops" />
<apex:pageMessages />

	<apex:ListViews type="Workshop__c" />

<script>
    // Using jQuery, hide all of the actionLinks (edit link specifically) on the Workshops
    // This forces the user to click the Workshop name and then click the [Edit] button
    $(".actionLink").css("display","none");
</script>

</apex:page>

 

http://www.force2b.net/index.php/2010/06/hiding-edit-links-for-related-listsviews-on-a-visualforce-page/

 

 

Ashish_SFDCAshish_SFDC

 

Also, Vote for the Idea : Enable Action Links (Edit & Del) to be hidden on ListViews and Related Lists

 

https://success.salesforce.com/ideaView?id=08730000000ksRdAAI

 

 

Regards,

Ashish

ying.ax1897ying.ax1897

Hi

 

I cannot use VF page beacuse there are still some other information in this page.

Thanks.

Ashish_SFDCAshish_SFDC

Hi Ying, 

 

We do not have any Standard feature (Button click) to disable or remove the edit | del links, the only way is to override the page with a Visualforce page and hide the functionality. 

 

You may vote for the Idea link below, which is to include this feature in in Setup Console.

 

https://success.salesforce.com/ideaView?id=08730000000ksRdAAI

 

Regards,

Ashish