An administrator is tasked with enforcing data quality standards on a custom object named Partner_Application__c. Business policy requires that whenever the Tier__c picklist field is set to either 'Gold' or 'Platinum', the Tax_Identification_Number__c custom text field must not be left blank. Which validation rule formula correctly enforces this requirement to prevent saving non-compliant records?
- AND( OR(ISPICKVAL(Tier__c, 'Gold'), ISPICKVAL(Tier__c, 'Platinum')), ISBLANK(Tax_Identification_Number__c) )Cevap
- BOR( AND(ISPICKVAL(Tier__c, 'Gold'), ISPICKVAL(Tier__c, 'Platinum')), ISBLANK(Tax_Identification_Number__c) )
- CAND( OR(ISPICKVAL(Tier__c, 'Gold'), ISPICKVAL(Tier__c, 'Platinum')), NOT(ISBLANK(Tax_Identification_Number__c)) )
- DAND( Tier__c = 'Gold', Tier__c = 'Platinum', ISBLANK(Tax_Identification_Number__c) )
Cevap
The correct formula is AND( OR(ISPICKVAL(Tier__c, 'Gold'), ISPICKVAL(Tier__c, 'Platinum')), ISBLANK(Tax_Identification_Number__c) ).
The correct formula uses OR(ISPICKVAL(Tier__c, 'Gold'), ISPICKVAL(Tier__c, 'Platinum')) to check if either target tier is selected, combined with ISBLANK(Tax_Identification_Number__c) inside an outer AND function. Because a validation rule fires when the formula evaluates to TRUE, this logic successfully blocks saves when a Gold or Platinum application lacks a tax identification number.
Adım Adım Çözüm
Anahtar Kavram
Validation Rule Logic and Picklist Evaluation Functions
Tahmini Süre:1m 15s