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
Vishal_ThoriyaVishal_Thoriya 

How to remove Action column in <apex:relatedList> in VF Page?

How to remove Action column in <apex:relatedList> in VF Page without changing User permission ?

Page is: 

<apex:detail relatedList="false"/>
<apex:relatedList list="Engineering_Deployment_Elements__r"/>

 

Best Answer chosen by Admin (Salesforce Developers) 
Navatar_DbSupNavatar_DbSup

Hi,

 

Try the below code snippet reference:

 

<apex:page standardController="Account">

    <apex:pageBlock title="My Content">

        <apex:pageBlockTable value="{!account.Contacts}" var="item">

            <apex:column value="{!item.name}"/>

            <apex:column value="{!item.Email}"/>

            <apex:column value="{!item.Phone}"/>

        </apex:pageBlockTable>

    </apex:pageBlock>

</apex:page>

 

 

After creating the page add the page in account page layout.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

All Answers

Navatar_DbSupNavatar_DbSup

Hi,

 

Try the below code snippet reference:

 

<apex:page standardController="Account">

    <apex:pageBlock title="My Content">

        <apex:pageBlockTable value="{!account.Contacts}" var="item">

            <apex:column value="{!item.name}"/>

            <apex:column value="{!item.Email}"/>

            <apex:column value="{!item.Phone}"/>

        </apex:pageBlockTable>

    </apex:pageBlock>

</apex:page>

 

 

After creating the page add the page in account page layout.

 

Did this answer your question? If not, let me know what didn't work, or if so, please mark it solved. 

 

This was selected as the best answer
Vishal_ThoriyaVishal_Thoriya

Thanks a lot.

Rajkumar VenkatRajkumar Venkat

This may helps you!!!

 

<apex:page standardController="Quote" sidebar="false" >

<script>
$(document).ready(function(){
$('#relatedLst').attr('target','_blank');
});
</script>

<style>
.pbButton{
display:none;
}
.actionColumn{
display:none;
}
</style>
<div id="relatedLst">

<apex:relatedList list="ProcessSteps">
<apex:facet name="header">&nbsp;</apex:facet>

</apex:relatedList>
</div>
<!-- <apex:pageBlock >
<apex:pageBlockTable value="{!Quote.ProcessSteps}" var="item">
<apex:column value="{!item.StepStatus}"/>
<apex:column value="{!item.ActorId}"/>
<apex:column value="{!item.OriginalActorId}"/>
<apex:column value="{!item.CreatedDate}"/>
<apex:column value="{!item.Comments}"/>

</apex:pageBlockTable>
</apex:pageBlock>-->

</apex:page>