A Salesforce administrator at a software publishing company is setting up a validation rule on the custom object Bug_Report__c. The business requirement mandates that whenever the picklist field Severity__c is set to "Critical", the text field Resolution_Plan__c must not be left blank before saving the record. Which formula should the administrator use to enforce this data quality requirement?
- AND(ISPICKVAL(Severity__c, "Critical"), ISBLANK(Resolution_Plan__c))Answer
- BAND(ISPICKVAL(Severity__c, "Critical"), Resolution_Plan__c = NULL)
- CAND(ISPICKVAL(Severity__c, "Critical"), NOT(ISCHANGED(Resolution_Plan__c)))
- DAND(RecordType.Name = "Critical", ISBLANK(Resolution_Plan__c))
Answer
AND(ISPICKVAL(Severity__c, "Critical"), ISBLANK(Resolution_Plan__c))
The correct formula uses ISPICKVAL() to evaluate the picklist field Severity__c against the target value 'Critical' and combines it with ISBLANK(Resolution_Plan__c) inside an AND() function. When both conditions are met (Severity is Critical and Resolution Plan is empty), the formula returns TRUE, preventing the record from being saved without a resolution plan.
Step-by-Step Solution
Key Concept
Validation Rule Logic and Picklist/Null Evaluation