PLAT-ADMN-202 practice question 33 of 35
The Recruiting ream at AW Computing captures thejob 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 cecord edit. Which validation formula should the app builder use?
Full set: 311 questionsDomain Productivity and Collaboration
The requirement is to prevent the HireDatec from being changed once a candidate's job acceptance is recorded. A validation rule triggers an error if its formula evaluates to TRUE. The formula NOT(ISBLANK(JobAcceptedc)) && ISCHANGED(HireDatec) correctly implements this logic. NOT(ISBLANK(JobAcceptedc)): This part evaluates to TRUE if the JobAcceptedc field has any value, indicating the job offer has been accepted. ISCHANGED(HireDatec): This part evaluates to TRUE if the HireDatec field is being modified during the current record edit. && (AND): This logical operator ensures the rule only fires when both conditions are met, fulfilling the requirement to lock the hire date only after acceptance.
B. (ISBLANK(JobAcceptedc) || NOT(ISCHANGED(HireDatec))): The OR (||) logic is incorrect. This rule would incorrectly prevent saving a record if the job is not yet accepted OR if the hire date is not being changed.
C. NOT(ISBLANK(JobAcceptedc)) || ISCHANGED(HireDatec): The OR (||) operator is too broad. It would prevent saving any record that is marked as accepted, which is not the desired behavior.
D. (ISBLANK(JobAcceptedc) && NOT(ISCHANGED(HireDatec))): This logic is incorrect as it would fire when a job is not accepted and the hire date is not being changed, which is unrelated to the business requirement.
1. Salesforce Help Documentation, "Formula Operators and Functions":
ISCHANGED(field): "Compares the value of a field to the previous value and returns TRUE if the values are different. If the values are the same, this function returns FALSE." This function is essential for detecting the modification attempt.
ISBLANK(expression): "Determines if an expression has a value and returns TRUE if it does not. If it contains a value, this function returns FALSE." Used with NOT() to confirm the acceptance field is populated.
&& (AND): "Returns a TRUE response if all values are true; returns a FALSE response if one or more values are false." This operator is crucial for ensuring both conditions must be met.
2. Salesforce Help Documentation, "Examples of Validation Rules": The principle is demonstrated in similar examples, such as preventing changes to a closed opportunity. A common pattern is to check if a status field has a certain value (ISPICKVAL(StageName, "Closed Won")) AND another field is being changed (ISCHANGED(Amount)). The question uses NOT(ISBLANK()) as the status check, but the logical structure (Condition1 && Condition2) is identical.
Keep practicing
Take the free PLAT-ADMN-202 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other PLAT-ADMN-202 practice questions
- Question 1Universal Containers manages leads in a Lead qualification queue where sales reps can acc…
- Question 2Ursa Major Solar wants to see the Type field from the parent object Galaxy listed on the …
- Question 3Universal Containers (UC) utilizes two custom picklist fields called sales_Organization__…
- Question 4Which two features can be used to allow users to access Flows? Choose 2 answers
- Question 5Universal Containers wants some enhancements on its Opportunity page layout to improve ef…
- Question 6A business user wants a quick way to edit a record's status and enter a custom due date f…
