Skip to main content
I created a validation rule on my contact object that fires if the field “Category” is changed so the “Reason for Change” field cannot be blank. 

 

AND(

 

 ISCHANGED( Ministry_Category__c ),

 

 ISBLANK(   Reason_For_Ministry_Category_Change__c  ) )

 

The problem is, on some records the Ministry Category is initially blank and sometimes the Category field can change more than once. 

 

If the rule fires for the first time and a Reason is entered and if there is a second update, the rule won’t fire since there is already something in the Reason field.

 

I’m not sure how to update the validation rule to include a second update?

 

 
7 answers
  1. Apr 3, 2017, 4:45 PM

    OK that makes it clear. Use this then:

    AND(

    NOT(ISBLANK(TEXT(PRIORVALUE(Ministry_Category__c )))),

    ISCHANGED( Ministry_Category__c ),

    OR(

    ISBLANK( Reason_For_Ministry_Category_Change__c ),

    NOT(ISCHANGED(Reason_For_Ministry_Category_Change__c ))

    )

    )

0/9000