![]()
Top 25 plus special characters in SharePoint โ sometimes, we need to validate the special characters in SharePoint list columns โ so that we can prevent the user to enter special characters in the SharePoint column while entering the data. Here in this tutorial, we will learn about how to validate special characters in the SharePoint list column(special character validation in SharePoint).
Validate special characters in SharePoint online
It is very simple to validate with just a few clicks and with the validation formula.
Step 1:
Go to the List Settings page, then click on the column for which you want to add the validation formula. For example, here I have selected the column โTitleโ.
![[Proven Top 25 plus]: Validate special characters in SharePoint list column(special character validation in SharePoint) 3 Column validation in SharePoint Online list](https://i0.wp.com/global-sharepoint.com/wp-content/uploads/2020/05/Column-validation-in-SharePoint-Online-list.png?resize=1084%2C642&ssl=1)
Step 2:
Click on the column name for which you want to add the validation formula โ here I have clicked on the โTitleโ column which will take users to the โEdit Columnโ page.
Go to the โColumn Validationโ section and in the โFormulaโ box add the below formula and in the โUser messageโ box, you can give your validation message which is optional but better to provide.
Syntax:
=AND(IF(ISERROR(FIND(",",[ColumnName])),TRUE),
IF(ISERROR(FIND("&",[ColumnName])),TRUE),
IF(ISERROR(FIND(";",[ColumnName])),TRUE),
IF(ISERROR(FIND("[",[ColumnName])),TRUE),
IF(ISERROR(FIND("+",[ColumnName])),TRUE),
IF(ISERROR(FIND(":",[ColumnName])),TRUE),
IF(ISERROR(FIND(")",[ColumnName])),TRUE),
IF(ISERROR(FIND("-",[ColumnName])),TRUE),
IF(ISERROR(FIND("*",[ColumnName])),TRUE),
IF(ISERROR(FIND("(",[ColumnName])),TRUE),
IF(ISERROR(FIND("$",[ColumnName])),TRUE),
IF(ISERROR(FIND("%",[ColumnName])),TRUE),
IF(ISERROR(FIND("~",[ColumnName])),TRUE),
IF(ISERROR(FIND("#",[ColumnName])),TRUE),
IF(ISERROR(FIND("]",[ColumnName])),TRUE),
IF(ISERROR(FIND(".",[ColumnName])),TRUE),
IF(ISERROR(FIND("!",[ColumnName])),TRUE),
IF(ISERROR(FIND("@",[ColumnName])),TRUE),
IF(ISERROR(FIND("/",[ColumnName])),TRUE),
IF(ISERROR(FIND("\",[ColumnName])),TRUE))
Notes:
- In the above formula, replace โColumnNameโ with your column name.
- You can add or remove validation from the above formula based on your requirement.
- For the addition of a new validation condition, you can add a special character like the below and include this line to the above formula.
IF(ISERROR(FIND("speacial character you want to add",[ColumnName])),TRUE),
- For the deletion of the existing validation condition, just we need to remove the โIFโ condition line from the above-consolidated formula.
Example:
I have applied the validation formula in the โTitleโ column.
![[Proven Top 25 plus]: Validate special characters in SharePoint list column(special character validation in SharePoint) 4 Column validation in Edit Column - SharePoint List](https://i0.wp.com/global-sharepoint.com/wp-content/uploads/2020/05/Column-validation-in-Edit-Column-SharePoint-List.png?resize=612%2C739&ssl=1)
Formula added:
=AND(IF(ISERROR(FIND(",",[Title])),TRUE),
IF(ISERROR(FIND("&",[Title])),TRUE),
IF(ISERROR(FIND(";",[Title])),TRUE),
IF(ISERROR(FIND("[",[Title])),TRUE),
IF(ISERROR(FIND("+",[Title])),TRUE),
IF(ISERROR(FIND(":",[Title])),TRUE),
IF(ISERROR(FIND(")",[Title])),TRUE),
IF(ISERROR(FIND("-",[Title])),TRUE),
IF(ISERROR(FIND("*",[Title])),TRUE),
IF(ISERROR(FIND("(",[Title])),TRUE),
IF(ISERROR(FIND("$",[Title])),TRUE),
IF(ISERROR(FIND("%",[Title])),TRUE),
IF(ISERROR(FIND("~",[Title])),TRUE),
IF(ISERROR(FIND("#",[Title])),TRUE),
IF(ISERROR(FIND("]",[Title])),TRUE),
IF(ISERROR(FIND(".",[Title])),TRUE),
IF(ISERROR(FIND("!",[Title])),TRUE),
IF(ISERROR(FIND("@",[Title])),TRUE),
IF(ISERROR(FIND("/",[Title])),TRUE),
IF(ISERROR(FIND("\",[Title])),TRUE))
Test โ Demo: validate special characters in SharePoint online (character limit in SharePoint list)
After adding the validation formula to the โTitleโ column when we try to enter an item with a special character in the โTitleโ column, we will not be able to save the data and the user will get the validation message โPlease enter the valid dataโ.
![[Proven Top 25 plus]: Validate special characters in SharePoint list column(special character validation in SharePoint) 5 Column validation in SharePoint Online list - Test](https://i0.wp.com/global-sharepoint.com/wp-content/uploads/2020/05/Column-validation-in-SharePoint-Online-list-Test.png?resize=1084%2C396&ssl=1)
In the above example, we have entered the โTest . Itemโ where dot โ.โย is the special character as per the above validation formula which we have applied, so it does not allow to save the data, however, once we remove the dot โ.โ from the โTitleโ column value, it will be saved successfully, please see the below:
![[Proven Top 25 plus]: Validate special characters in SharePoint list column(special character validation in SharePoint) 6 Column validation in SharePoint Online list - Test Successful](https://i0.wp.com/global-sharepoint.com/wp-content/uploads/2020/05/Column-validation-in-SharePoint-Online-list-Test-Successful-1.png?resize=1084%2C518&ssl=1)
Summary: validate special characters in SharePoint online (SharePoint special characters)
Thus, in this blog, we have learned about how to validate the special characters in the SharePoint list column and prevent being entered into the list item.
See Also: SharePoint Online tutorial
You may also like the below SharePoint Online tutorials:
- Getting Error โInfoPath cannot generate a form template for the SharePoint listโ
- How to auto populate field in InfoPath based on another field
- Add more than 5 conditions in InfoPath formโs rule
- How to validate the date column in Infopath form
- How to a copy list item to another list using SharePoint designer workflow
- Edit user Permission is greyed Out SharePoint Online
- Can not upload SharePoint App to SharePoint App Catalog
- Column header formatting in SharePoint list Quick Edit or Datasheet View
- Enable and configure information rights management (IRM) in SharePoint Online
- 25 quick checklists for SharePoint migration
- Create app catalog site in SharePoint online step by step
- Manage recycle bin in SharePoint Online โ Office 365
- Special characters in document names in SharePoint Online
About Post Author
Discover more from Global SharePoint
Subscribe to get the latest posts sent to your email.
![[Proven Top 25 plus]: Validate special characters in SharePoint list column(special character validation in SharePoint) 8 Buy SharePoint Online & Office 365 Administration eBook](https://i0.wp.com/global-sharepoint.com/wp-content/uploads/2021/04/Buy-SharePoint-Online-eBook-300x277.png?resize=300%2C277&ssl=1)