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
Cameron SeitzCameron Seitz 

Not Allow Commas In A Field

I'm trying to not allow the "," character to be used in a specific field. What I'm currently using below doesn't seem to be working and I'm stuck. 

NOT(REGEX(Address_Line_1__c , "[a-zA-Z0-9$%&]"))
Best Answer chosen by Cameron Seitz
jigarshahjigarshah
Cameron,

You could simple create a Validation Rule which triggers the validaiton and restrcits the record creation if a comma is present.
CONTAINS(Address_Line_1__c,",")

 

All Answers

jigarshahjigarshah
Cameron,

You could simple create a Validation Rule which triggers the validaiton and restrcits the record creation if a comma is present.
CONTAINS(Address_Line_1__c,",")

 
This was selected as the best answer
jigarshahjigarshah
Cameron,

If your issue is addressed, please close this thread.