A Salesforce administrator at a renewable energy firm needs to enforce data quality on the Opportunity object. The business requirement dictates that whenever an Opportunity is set to the 'Closed Won' stage, the custom text field Project_Install_Address__c must not be left blank. Which validation rule formula correctly enforces this requirement?
- AND(ISPICKVAL(StageName, "Closed Won"), ISBLANK(Project_Install_Address__c))Answer
- BAND(ISPICKVAL(StageName, "Closed Won"), Project_Install_Address__c = "")
- CConfigure Lead Conversion Field Mapping to map the Lead Address to the Opportunity Project_Install_Address__c field.
- DRemove the 'Closed Won' value from the Opportunity Record Type picklist assignment for users who leave the address empty.
Answer
The validation rule formula using AND(ISPICKVAL(StageName, "Closed Won"), ISBLANK(Project_Install_Address__c)) correctly evaluates to TRUE and blocks the record save whenever an Opportunity reaches 'Closed Won' status with an unpopulated installation address field.
The formula using AND(ISPICKVAL(StageName, "Closed Won"), ISBLANK(Project_Install_Address__c)) is correct because validation rules block record creation/updates when the formula evaluates to TRUE. Combining ISPICKVAL for the StageName picklist with ISBLANK for the text field properly catches records moving to Closed Won without the required address.
Step-by-Step Solution
Key Concept
Salesforce Validation Rule Formulas and Null Field Handling