Skip to main content
Hi Developers,

Need a help to achieve below functionality. 

how to write a validation rule such that it should not allow any special characters(!@⌗$%^&*) and not allow all zeros in a field. (eg: 0 or 00 or 000 or 0000). 

I have used the below validation rule that is restricting special characters but allowing all zeros. 

NOT(REGEX(Phone__c,"^[a-zA-Z0-9]*$"))
6 个回答
  1. 2018年10月5日 07:54
    Hi Swetha,

     Correction to the previous reply.

    OR(NOT(REGEX(test__c,"^[a-zA-Z0-9]*$")),REGEX(test__c,"^[0]*$"))
0/9000