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?
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.
===========
Evangelina
3 days agoHubert
8 days agoCarey
13 days agoFredric
18 days agoTawny
23 days agoJolanda
29 days agoYuriko
1 month agoGregg
1 month agoIlene
1 month agoLeslie
2 months agoKristal
2 months agoGlendora
2 months agoStephaine
2 months agoMicah
2 months ago