Salesforce Certified Platform App Builder — Question 308
The Recruiting team at AW Computing captures the job acceptance and date of hire of a candidate on the Job Application custom object. Once the candidate accepts the recruiter's Job offer, the date of hire should be entered and not be changed on subsequent record edits.
Which validation formula should the app builder use?
Answer options
- A. (ISBLANK(Job_Accepted__c) || NOT(ISCHANGED(Hire_Date__c))
- B. (ISBLANK(Job_Accepted__c) && NOT(ISCHANGED(Hire_Date__c))
- C. NOT(ISBLANK(Job_Accepted__c)) && ISCHANGED(Hire_Date__c)
- D. NOT(ISBLANK(Job_Accepted__c)) || ISCHANGED(Hire_Date__c)
Correct answer: C
Explanation
The correct answer C ensures that the hire date cannot be changed once it is set, as it checks if the Job Accepted field is not blank and if the Hire Date has been altered. Options A and B do not appropriately enforce the restriction on changing the Hire Date, while option D incorrectly allows changes if the Job Accepted field is not blank.