why use not operation in regex function salesforce -
could of pls explain following code. why not used for?
not(regex(zip_postal_code__c, "[0-9]{5}"))
it looks code in validation rule. validation rules show error if result of evaluating code true.
regex(zip_postal_code__c, "[0-9]{5}")
evaluate true if zip code in field valid , false if value not valid cause validation throw error if zip valid. since intention throw error when zip code not valid, not() function used invert or negate result of regex() function.
Comments
Post a Comment