Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Plat-Admn-202 Exam - Topic 5 Question 12 Discussion

Posted by Rosendo on May 26, 2026 at 05:43 PM

Universal Containers uses a custom object called Projects. When managers Assign projects, they set a custom field on the Project record called Estimated Hours. Once set, users should be able to decrease but not increase the value. How can an app builder meet this requirement?

Suggested Answer: C

The correct answer is C. Create a validation rule that uses the PRIORVALUE function.

The requirement is: once Estimated Hours is set, users can decrease the value but cannot increase it. A validation rule can compare the new value with the old value by using PRIORVALUE().

Example logic:

Estimated_Hours__c > PRIORVALUE(Estimated_Hours__c)

Salesforce documents PRIORVALUE() as the function used to return the previous value of a field, and Salesforce examples use it in validation rules to compare a changed value against the prior value.

A is incomplete because ISCHANGED() only detects that the field changed; it does not determine whether the value increased or decreased.

B is incorrect because a default value does not control later edits.

D is incorrect because PREVGROUPVAL() is used in reports, not validation rules.

===========


Get Premium Plat-Admn-202 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
15 comments · newest first
LI
Lili 1 month ago
I like how C focuses on the history of the field. Makes sense!
EV
Evangelina 2 months ago
I feel like A might miss some cases. C covers all bases.
HU
Hubert 2 months ago
C is definitely more reliable for this scenario.
CA
Carey 2 months ago
I'm leaning towards A. ISCHANGED could work too, but not as effectively.
FR
Fredric 2 months ago
Agreed! PRIORVALUE will ensure users can't increase hours.
TA
Tawny 2 months ago
I think option C is the best choice. It checks the previous value.
JO
Jolanda 2 months ago
B is not relevant here, it won't enforce the decrease rule.
YU
Yuriko 3 months ago
Wait, can we really only decrease the value? That seems odd.
GR
Gregg 3 months ago
Definitely C! It’s the best option for this scenario.
IL
Ilene 3 months ago
I think A could work too, but not sure if it covers all cases.
LE
Leslie 3 months ago
C is the way to go! PRIORVALUE checks the old value.
KR
Kristal 3 months ago
I'm leaning towards the formula default value option, but I can't recall if that would actually enforce the decrease-only rule.
GL
Glendora 4 months ago
I feel like we practiced a similar question where we had to restrict field changes, and I think the validation rule was the right approach.
ST
Stephaine 4 months ago
I remember something about ISCHANGED, but I'm not sure if it applies here since we want to allow decreases only.
MI
Micah 4 months ago
I think we need to prevent increases in the Estimated Hours, so maybe a validation rule with PRIORVALUE could work?
0/2000 characters

Save Cancel