What is the simplest approach to handle this new requirement?

Universal Containers (UC) has several custom Visualforce applications have been developed in which users are able to edit Opportunity records. UC struggles with data completeness on their Opportunity records and has decided to make certain fields required that have not been in the past. The newly required fields are dependent on the Stage of the Opportunity, such that certain fields are only required once an Opportunity advances to later stages. There are two fields.

What is the simplest approach to handle this new requirement?
A . Update the Opportunity page layout to mark these fields as required.
B . Use a validation rule for each field that takes the Stage into consideration.
C . Update these Opportunity field definitions in Setup to be required.
D . Write an Apex trigger that checks each field when records are saved.

Answer: B

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments