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
From the management settings for the relevant object, go to Validation Rules.
In the Validation Rules related list, click New.
Note The detail page of a custom activity field does not list associated validation rules. To
edit the validation rule for a custom activity field, select the validation rule from Setup by
entering Activities in the Quick Find box, then selecting
Activities and choose Task Validation Rules or
Event Validation Rules.
We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required Cookies
Always Active
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional Cookies
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising Cookies
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.