An administrator needs to ensure that whenever an Opportunity stage is set to 'Closed Won', the custom field 'Payment_Method__c' must not be left blank. Which validation rule formula correctly enforces this requirement?
- AND(ISPICKVAL(StageName, "Closed Won"), ISBLANK(Payment_Method__c))Answer
- BAND(ISPICKVAL(StageName, "Closed Won"), Payment_Method__c = "")
- COR(ISPICKVAL(StageName, "Closed Won"), ISBLANK(Payment_Method__c))
- DAND(NOT(ISPICKVAL(StageName, "Closed Won")), ISBLANK(Payment_Method__c))
Answer
The validation rule formula using AND(ISPICKVAL(StageName, "Closed Won"), ISBLANK(Payment_Method__c)) correctly enforces the data quality requirement.
Validation rules prevent saving a record when the formula returns TRUE. Combining ISPICKVAL(StageName, 'Closed Won') with ISBLANK(Payment_Method__c) inside an AND() function ensures that if the Opportunity is marked as 'Closed Won' and the payment method is missing, the validation rule triggers and displays the error message.
Step-by-Step Solution
Key Concept
Validation Rule Logic and Null Checking with ISBLANK