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
Marie SvenssonMarie Svensson 

make field mandatory based on primary partner

Hi,
Is it possible to make a field on opportunity mandatory only if there is a specific primary partner attached to that opportunity (in the Partner related list)?
Danish HodaDanish Hoda
Hi Marie, You need to write trigger on Opportunity (before update) to check for the value in related record(s) and add restrict the update using .addError() method.