+ 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.