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
AbAb 

Filtering a lookup based oncertain filters

Hello,

I have a lookup on the "opportunity" to the "contact".
Once the user clicks on this lookup, tit should only show all the contact which are XYZ. Xyz is a field that is checked on contact.

Thank you for suggestion
Tikam.SangwaniTikam.Sangwani
Hi @Sandrine,

You can achieve using filtered lookup while creating lookup field on Opportunity. Please use below steps:

New Field - > Lookup Relationship - > Select Object(Contact) - >  Click on 'Show Filter Settings'  -> Under Filter Criteria Select Contact's XYZ Field, Operator as 'Equal', Value / Field as 'Value' and the Value will be 'True'. Please refer below screenshot:

User-added image

User-added image


Best Regards 
Tikam Sangwani