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
Sreenivasulu AdipudiSreenivasulu Adipudi 

Display only active contacts on under Opportunity Contact Role

Hi Everyone,

We have a custom field named 'Status' in the Contact object. 'Status' is a picklist value with two values Active/Inactive. 
My requirement is to display only Active contacts under the 'Opportunity Contact Role' related list. 
I have created the following lookup filter on the Contract role object:
Contact: Status equals to true.
But it is all contacts including Inactive as well. The lookup filter is not working.
Please help me by providing a solution to this.

Thanks,
Sreenivasulu A.
ShirishaShirisha (Salesforce Developers) 
Hi Sreenivasulu,

Greetings!

In order to achieve this you might need to customize OpportunityContact Role related list.Otherwise,you need to create the section by using the Visualforce on which you can query the Contact roles with the Status as Active.

Reference:https://trailblazers.salesforce.com/answers?id=90630000000hmHoAAI

Kindly mark it as best answer if it helps so that it can help others in the future.

Warm Regards,
Shirisha Pathuri