PLAT-ADMN-201 · Question #137
PLAT-ADMN-201 Question #137: Real Exam Question with Answer & Explanation
The correct answer is C: AND(ISPICKVAL(LeadSource,'Other'), ISBLANK(Source__c)). Salesforce validation rules fire (block the save) when the rule evaluates to TRUE. The requirement is: if LeadSource is 'Other' and Source__c is blank, block the save. Option C - AND(ISPICKVAL(LeadSource,'Other'), ISBLANK(Source__c)) - correctly uses ISPICKVAL() to compare a pick
Question
Northern Trail Outfitters (NTO) wants to ensure new Contacts are validated before they can be saved. If a user selects that the LeadSource picklist value is Other, NTO also wants to populate a custom text field called Source__c. Which validation rule should a Platform Administrator configure to meet this requirement?
Options
- AAND(LeadSource = 'Other', Source__c = '')
- BAND(NOT(LeadSource = 'Other'), NOT(Source__c = ''))
- CAND(ISPICKVAL(LeadSource,'Other'), ISBLANK(Source__c))
- DAND(NOT(ISPICKVAL(LeadSource,'Other'))), NOT(ISBLANK(Source__c))
Explanation
Salesforce validation rules fire (block the save) when the rule evaluates to TRUE. The requirement is: if LeadSource is 'Other' and Source__c is blank, block the save. Option C - AND(ISPICKVAL(LeadSource,'Other'), ISBLANK(Source__c)) - correctly uses ISPICKVAL() to compare a picklist field (direct equality '=' does not work reliably on picklists in formula context) and ISBLANK() to check if the text field is empty. This rule returns TRUE only when both conditions are met, correctly blocking the save. Option A uses = on a picklist (invalid). Option B inverts the logic, blocking saves when LeadSource is NOT Other and Source__c is NOT blank. Option D has inverted logic and a syntax error (extra parenthesis).
Topics
Community Discussion
No community discussion yet for this question.