Loading
Extend Salesforce with Clicks, Not Code
Table of Contents
Select Filters

          No results
          No results
          Here are some search tips

          Check the spelling of your keywords.
          Use more general search terms.
          Select fewer filters to broaden your search.

          Search all of Salesforce Help
          Define Validation Rules

          Define Validation Rules

          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.

          1. From the management settings for the relevant object, go to Validation Rules.
          2. In the Validation Rules related list, click New.
            Note
            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.
          3. Enter the properties of your validation rule.
          4. To check your formula for errors, click Check Syntax.
           
          Loading
          Salesforce Help | Article