55.6k views
5 votes
Universal Containers tracks Offers as an object in a recruiting application. Once an offer has been accepted by a candidate, there must be a value in the Actual salary field. How would a developer meet this requirement?

1) Create a workflow field update to set the property of the Actual salary to "Required".
2) Create a validation rule to make Actual Salary required each time the offer record is saved.
3) Create a formula field that prompts the user to enter an Actual Salary value whenever the Offer record is edited.
4) Create a validation rule to make sure that the Actual Salary is not null whenever an offer is accepted.

User Dan Frank
by
8.4k points

1 Answer

4 votes

Final answer:

The correct solution to ensure an Actual Salary value is entered when an offer is accepted in a recruiting application is to create a validation rule that prevents saving the offer record if the Actual Salary is null at the time of acceptance.

Step-by-step explanation:

The requirement is that once an offer has been accepted by a candidate, the Actual salary field must contain a value. The correct way to implement this requirement in a recruiting application is to create a validation rule that checks whether the Actual Salary field is not null when the status of an offer indicates that it has been accepted. This can be achieved by setting up a validation rule with criteria like IF(AND(Status__c = 'Accepted', ISBLANK(Actual_Salary__c)), true, false), which will ensure that the offer record cannot be saved unless the Actual Salary field is filled out when the offer is accepted.

User CashIsClay
by
7.6k points