Validation rules verify that the data a user enters in a record meets the standards you
specify before the user can save the record. A validation rule can contain a formula or expression
that evaluates the data in one or more fields and returns a value of “True” or
“False”. Validation rules also include an error message to display to the user when
the rule returns a value of “True” due to an invalid value.
Required Editions
| Available in: both Salesforce Classic and Lightning Experience |
| Available in: Essentials, Contact Manager, Group,
Professional, Enterprise, Performance, Unlimited,
Developer, and Database.com Editions
|
| User Permissions Needed |
| To view field validation rules: |
View Setup and Configuration |
| To define or change field validation rules: |
Customize Application |
Before creating validation rules, review the Validation Rule
Considerations.
-
From the management settings for the relevant object, go to Validation Rules.
-
In the Validation Rules related list, click New.
-
Enter the
properties of your validation rule.
-
To check your formula for errors, click Check Syntax.