Newer Version Available

This content describes an older version of this product. View Latest

Examples of Validation Rules

Review examples of validation rules for various types of apps that you can use and modify for your own purposes. Validation rules verify that the data a user enters in a record meets the standards you specify before the user can save the record.
Available in: both Salesforce Classic and Lightning Experience
Available in: 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

Use the following samples for validation rules in Salesforce and Force.com AppExchange apps, including: