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 9 years, 6 months 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

How to Learn Salesforce Development | Salesforce learning steps for beginners | Trailhead demo

Video in

In this video, we shared the steps to learn salesforce lightning basics, salesforce apex development, CRM in online for free from scratch very quickly. Learn salesforce…