We need to know if is possible the following.
We want to replace a related list to a
Visualforce Page that we create. We want to change it in the page layout. Is it possible?
Salesforce Stack Exchange is a question and answer site for Salesforce administrators, implementation experts, developers and anybody in-between. It only takes a minute to sign up.Sign up to join this community
Yes and no. You can add a
Visualforce Page to your
Page Layout as long as you set the
StandardController to the object in question. However, pages included as such will be in a different section of the page, so you don't have quite as much control in that regard. The lowest you can place them is directly above the rest of your standard
Here is a basic example of what the page would look like. The key here is the
standardController attribute, which enables you to add the page to your layout or use it in button overrides, custom button implementations, etc.
<apex:page standardController="MyObject__c"> <apex:relatedList list="Children__c" /> </apex:page>
You can refer a sample implementation in this link: Customize Related Lists using VisualForce and Apex