Activity Forums Salesforce® Discussions How to make checkbox field mandatory when ever the status changes.?

  • How to make checkbox field mandatory when ever the status changes.?

    Posted by Suraj on April 3, 2017 at 1:39 pm

    i have written sample validation rule

    IF(AND(
    ISPICKVAL(Status,"Open"), ISPICKVAL(PRIORVALUE(Status),"Closed"),
    (Flag__c = True)))

    How to make checkbox field mandatory when ever the status changes.?

    Saurabh replied 7 years ago 2 Members · 1 Reply
  • 1 Reply
  • Saurabh

    Member
    April 4, 2017 at 7:01 am

    Hi Suraj

    you can achieve your requirement by following error condition:

    AND ( TEXT(Status) = 'Open' , TEXT(PRIORVALUE(Status)) = 'Closed' , NOT(Flag__c))

    Hope this may help you:

    Thanks

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos