CRT-101 practice question 18 of 30

An administrator at Northern Trail Outfitters is creating a validation rule. Which two functions should the administrator use when creating a validation rule? Choose 2 answers

Full set: 248 questions
Answer options
A: Formula return type
B: Error condition formula Correct answer
C: Error message location Correct answer
D: Rule active date
Correct Answer:
B. Error condition formula; C. Error message location
Explanation

When an administrator creates a validation rule in Salesforce, two fundamental components must be configured. First is the Error Condition Formula, which contains the logical expression that is evaluated. If this formula returns a value of 'true', the validation rule triggers. Second, the administrator must define the Error Message and specify its Location on the page layout—either at the top of the page or next to a specific field. These two elements are essential for the rule's operation and user feedback.

Why Incorrect

A. Formula return type: A validation rule formula must always evaluate to a boolean (true/false) result. Unlike a formula field, you do not explicitly select a data type for the return value.
D. Rule active date: A validation rule is made active or inactive using a checkbox. There is no standard feature to set a specific date for the rule to become active.

References

1. Salesforce Help Documentation: Define Validation Rules. This official guide outlines the required steps for creating a validation rule. Step 5 explicitly requires entering the "Error Condition Formula," and Step 6 requires entering the "Error Message" and selecting the "Error Location."

Reference: Salesforce Help, "Define Validation Rules," Steps 5 and 6.

2. Salesforce Trailhead: Formulas and Validations Module, Create Validation Rules Unit. This educational module provides a hands-on walkthrough of the process. The "Create a Validation Rule" section details the necessary steps, including "Enter the error condition formula" and "Choose the error location."

Reference: Trailhead, "Formulas and Validations," Unit: "Create Validation Rules."

Scroll to Top