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
#DD#DD 

Replacing Opportunity related list with a customer page on Contact object

Hi,
I have a requirement wherein I have to replace the Opp. related list with custom VF page to support filters. Can anyone give some hints? Thanks.
KaranrajKaranraj
1. Remove the standard Opportunity related list in the page layout.
2. Create a new visualforce page to display related opportunity records in a table formate and filter conditions. Make sure that you are using standard controller in the visualforce page as Contact, else you can't add the visualforce page in the contact pagelayout.
3. Add the new visualforce in the contact pagelayout as inline visualforce page.
 
#DD#DD
Thanks!!
#DD#DD
can anyone provide me with a sample code?