Skip to main content
I have a SSN text field that is 9 characters.  How can I apply a Regex so that when the users tabs off the field (or saves) that the field appears like:

 

xxx-xx-xxxx with the dashes in the appropriate spot?

 

I found this Validation rule, but it doesn't seem to do anything.

 

REGEX(SSN__c, "[0-9]{3}-[0-9]{2}-[0-9]{4}")

 

Thanks!
8 answers
  1. Oct 17, 2013, 9:49 PM
    Good point about the View Encrypted Fields.  I'm going to enable that for the "system user" that is accessing salesforce through the website.  Thanks!
0/9000