function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
NLTNLT 

Validation for Account Name Field Should Not Contain Pipe(|) Character.

Validation for Account Name Field Should Not Contain Pipe(|) Character.
Best Answer chosen by NLT
AnkaiahAnkaiah (Salesforce Developers) 
You want to show only when name field have | symbol?

try with below.
REGEX( Name , "^[|]*$")

If this helps, please mark it as best answer.

Thanks!!
 

All Answers

AnkaiahAnkaiah (Salesforce Developers) 
Hi ,

try with below rule.
REGEX( Name , "^[a-zA-Z|]*$") 
Or you can also try with below function.
CONTAINS(Name,"|")


If this helps, Please mark it as best answer.

Thanks!!​​​​​​​
NLTNLT
Hi Ankaiah,

Thanks for reply. I want to show validation message only when there is Pipe character i.e. in the name field.
AnkaiahAnkaiah (Salesforce Developers) 
You want to show only when name field have | symbol?

try with below.
REGEX( Name , "^[|]*$")

If this helps, please mark it as best answer.

Thanks!!
 
This was selected as the best answer