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
Amit Singh.ax1042Amit Singh.ax1042 

How to validate postalCode/Zip field

hi friends,

i am getting problem while validating zip field

i want to use only numbers and text in my zip field...

how to achieve this...

i have used something like this,

NOT(REGEX(Zip__c,'[0-9]'))

 

but not getting proper result

srikeerthisrikeerthi

Hi

 

You can achieve that in this way

 

NOT(OR(CONTAINS(Empname__c, ' ') , REGEX(Empname__c,  "^[a-zA-Z0-9-/]*$")))

 

Thanks