SALESFORCE-ASSOCIATE · Question #97
A certain field should only be required when a lead is in a particular stage. How should this be implemented?
The correct answer is C. Validation Rule. A Validation Rule is the correct tool for enforcing conditional field requirements based on record stage or other criteria. It uses a formula to evaluate conditions and returns an error message when those conditions are not met.
Question
A certain field should only be required when a lead is in a particular stage. How should this be implemented?
Options
- ARequired on Field
- BRequired on Page layout
- CValidation Rule
- DWorkflow Rule
How the community answered
(32 responses)- A3% (1)
- C94% (30)
- D3% (1)
Why each option
A Validation Rule is the correct tool for enforcing conditional field requirements based on record stage or other criteria. It uses a formula to evaluate conditions and returns an error message when those conditions are not met.
Marking a field as Required at the field level makes it required universally across all records and page layouts - it cannot be conditioned on a stage value.
Marking a field as Required on a Page Layout enforces it for all users on that layout regardless of stage - it cannot apply conditional logic.
A Validation Rule can use a formula that checks the lead stage field and only triggers an error if the required field is blank when the stage matches a specific value. This provides conditional field enforcement that is not possible with static layout or field settings.
A Workflow Rule automates actions such as field updates or alerts after a record is saved, but it cannot prevent a save or enforce a required field conditionally.
Concept tested: Conditional field validation using formula-based validation rules
Source: https://help.salesforce.com/s/articleView?id=sf.validation_rules.htm&type=5
Topics
Community Discussion
No community discussion yet for this question.