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

Need help with a validation rule

I have a lookup field on contracts to an opportunity.  Is there a way that I can write a validation rule that requires an opportunity to have a contract that is "Activated' prior to marking the opportunity as Closed/Won?


Steve :-/Steve :-/

I don't think it can be done with Formula Language, because Opportunities and Contracts don't have the needed Master-Detail Relationship, so you can't get a handle to the Contract fields.  


You might be able to do something with Apex Code like they do with the free Primary Contact Required App from the AppExchange.  But the only thing that I know about Apex Code is that I don't know anything about Apex Code.