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
MANATTWebMANATTWeb 

Validating Opportunities

I am wanting to ensure a user fills out a Win/Loss section when the Opporunity Stage is Closed Won or Closed Lost with the following Validation Rule. It isn't working and since this is my first try at a validation rule, I'm not sure why. Any help would be appreciated.

( ISPICKVAL( Workflow_Stage__c , "Closed Won")  || ISPICKVAL( Workflow_Stage__c , "Closed Lost") ) && ( ISPICKVAL( Reason__c , "") ||  ISPICKVAL(  Result__c  , "") || ISBLANK(  W_L_Competitors__c ) ||   ISBLANK(W_L_Notes__c) )
Best Answer chosen by MANATTWeb
David ZhuDavid Zhu
why you would use Workflow_Stage__c  instead of stagename?

All Answers

David ZhuDavid Zhu
why you would use Workflow_Stage__c  instead of stagename?
This was selected as the best answer
MANATTWebMANATTWeb
Wow - so silly. We started to create a custom field for stage and then went back to the native one and I didn't update the rule. Thanks for pointing out the obvious. It is working now.