I have a validation below:
IF(
AND(
TEXT(Reason_for_Dead_Opportunity__c ) = "Superseded with another Opportunity",
ISBLANK( Replacement_Opportunity_Number__c )), True, False)
Basically if the Opportunity is dead and the reason is 'Superseded with another Opportunity' then you must populate the Replacement Opportunity number. This works however I have another validation which also kicks in and i dont want it to, the other validation is below:
ISPICKVAL (PRIORVALUE (StageName), "Dead")
So if the stage name is dead you cannot move back. Does this make sense.
13 answers
Try this
Validation rule 1IF((TEXT(Reason_for_Dead_Opportunity__c ) <> "Superseded with another Opportunity"),ISPICKVAL(PRIORVALUE (StageName), "Dead"),FALSE)
Validation rule 2AND(TEXT(Reason_for_Dead_Opportunity__c ) = "Superseded with another Opportunity",ISBLANK( Replacement_Opportunity_Number__c ))
Regards,
Akhil