---
schema_version: "1"
id: 3971c82b22bcc88d006fbb5e331b3d3c57b757e4f12360b190fe1d4c0ca47dec
title: Custom Metadata Type Validation Rules
collection: admin
version: current
locale: en-us
portal_url: https://docs.salesforce.com/admin/current/en-us/platform/264-0-0/custommetadatatype_validation.md
canonical_url: https://help.salesforce.com/s/articleView?id=platform.custommetadatatype_validation.htm&release=264.0.0&type=5
source_site: help.salesforce.com
content_type: documentation
content_hash: 0a5591bf60d779d7715daa569ccb6eff526398f5ea8aed6200405ace40c0b428
description: 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.
products:
  - Salesforce Platform
release: "264"
---
# Custom Metadata Type 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.

- **[Custom Metadata Type Fields and Validation Rules](https://help.salesforce.com/s/articleView?id=platform.custommetadatatypes_field_validation.htm&release=264.0.0&type=5)**  
    You can use validation rules with fields in custom metadata types, including relationship fields. Keep these tips in mind as you do.
- **[Custom Metadata Types and Validation Rule Formulas](https://help.salesforce.com/s/articleView?id=platform.custommetadatatypes_validation_rules.htm&release=264.0.0&type=5)**  
    Use custom metadata records to store validation rule record values. Then, reference the records directly within validation rules and eliminate the need to add the same values into different validation rules. Using packaging? You can define the logic and leave customization to a subscriber.