Skip to main content
Bella Cotrone (COREFX) 님이 #Formulas에 질문했습니다

Hello, I'm trying to create a validation rule based on picklist values. I am fairly new to formulas and below is what I came up with. If any of the below picklist values are chosen then the user must fill out Opportunity Lost (Explain) field. Any help is greatly appreciated

 

AND( OR( ISPICKVAL( StageName, "Closed Lost"), ISPICKVAL( StageName, "Lost-Product"), ISPICKVAL( StageName, "Closed-CoreFX"), ISPICKVAL( StageName , "Lost-Pricing"))) ISBLANK( Opportunity_Lost_Explain__c )

답변 2개
  1. Michael Brown (Salesforce) Forum Ambassador
    2022년 1월 19일 오후 10:15

    Hi Bella, you're really close! I would try this, which should fire if the Stage is one of those 4 values but the Opportunity Lost field is blank.

    AND(

    OR(

    ISPICKVAL(StageName, "Closed Lost"),

    ISPICKVAL( StageName, "Lost-Product"),

    ISPICKVAL( StageName, "Closed-CoreFX"),

    ISPICKVAL( StageName , "Lost-Pricing")

    )

    ,

    ISBLANK( Opportunity_Lost_Explain__c )

    )

     

    Thanks,

    Mikey

0/9000