+ Start a Discussion
Malik Butler 5Malik Butler 5 

Regex that hides data

I need to create a regex that hides fields after being entered. Some are text fields some are numbers is there anyone that can help?
VinayVinay (Salesforce Developers) 
Hi Malik,

You should define field as text (encrypted) field and for defined format you can use REGEX.

Review below link which gives you more information.

https://salesforce.stackexchange.com/questions/175341/how-to-mask-and-format-credit-card-number-before-saving-in-salesforce

Also below is the link for limitations which we have on certain field to be encrypted.

https://success.salesforce.com/ideaView?id=08730000000aoKjAAI

Hope above information was helpful.

Please mark as Best Answer so that it can help others in the future.

Thanks,
Vinay Kumar