Introduction
Validation in SharePoint ensures that data entered by users meets specific rules before it is saved in a list or library. It can prevent errors, enforce consistency, and make reporting more accurate.
1. Column Validation
Purpose:
Ensures data entered in a single column is correct according to a rule.
Validation is triggered when a user tries to save a list item.
Steps to Configure Column Validation:
Open the SharePoint list.
Go to Settings (⚙) → List settings.
Scroll to the Columns section and click the column you want to validate.
Scroll down to Column Validation.
Enter:
Formula – defines the validation rule.
User Message – message shown when validation fails.
Click OK.
Example 1: Employee Age Validation
Scenario: You have a column “Age” in a list of employees. You want to ensure only people between 18 and 65 can be entered.
Formula:
=AND([Age]>=18,[Age]<=65)User Message:
"Age must be between 18 and 65."


✅ If a user enters 17, SharePoint will block it and display the message.

Example 2: Employee ID Length
Scenario: Your EmployeeID column must have exactly 5 characters.
Formula:
=LEN([EmployeeID])=5User Message:
"Employee ID must be exactly 5 characters long."

2. List Validation
Purpose:
Validates data across multiple columns in a list.
Useful for enforcing rules like Start Date < End Date or conditional requirements.
Steps to Configure List Validation:

Open the SharePoint list.
Go to Settings (⚙) → List settings.
Under General Settings, click Validation settings.
Enter:
Formula – rule for validation.
User Message – message when the rule is violated.

Click OK.
Example 1: Conditional Requirement
Scenario: You have a Status column (choices: Pending, Approved, Rejected) and a Comments column. You want Comments to be required only if Status is Rejected.
Formula:
=IF([Status]="Rejected",LEN([Comments])>0,TRUE)User Message: "You must provide comments if the status is Rejected."


✅ This is a real-world workflow example often used in approvals.

Marcin Szolke ScholkePosted Feb 26, 2026, 5:26 PM
Imagine if you could program every website yourself using just HTML, JavaScript, and CSS — complete CONTROL over design and functionality