An administrator wants to ensure that users provide a Mobile Phone number whenever the Preferred Contact Method picklist field is set to 'Mobile' on a Contact record. Which validation rule formula correctly enforces this requirement?
- AND(ISPICKVAL(Preferred_Contact_Method__c, 'Mobile'), ISBLANK(MobilePhone))Cevap
- BOR(ISPICKVAL(Preferred_Contact_Method__c, 'Mobile'), ISBLANK(MobilePhone))
- CAND(ISPICKVAL(Preferred_Contact_Method__c, 'Mobile'), NOT(ISBLANK(MobilePhone)))
- DISPICKVAL(Preferred_Contact_Method__c, 'Mobile')
Cevap
AND(ISPICKVAL(Preferred_Contact_Method__c, 'Mobile'), ISBLANK(MobilePhone))
The formula correctly uses the logical AND function to require that the Preferred Contact Method picklist equals 'Mobile' while the Mobile Phone field is simultaneously blank, evaluating to true and preventing save when data quality is violated.
Adım Adım Çözüm
Anahtar Kavram
Combining ISPICKVAL and ISBLANK functions in validation rules to enforce conditional data entry.