Is anyone aware of how to mask sensitive data within the GUI? I have seen some mention in Sandboxes,but wanted to see if anyone was doing this in production?


  • Can you elaborate on the use case for masking? Aug 27, 2019 at 19:00
  • @JohnWhelan Ideally, have some users that are unable to see certain sensitive data, as it doesn't apply to their job within the system. I know that is a stretch, just seeing if it is possible. Aug 27, 2019 at 19:05
  • You should be able to do this with field level security (FLS): help.salesforce.com/articleView?id=admin_fls.htm&type=5 Aug 28, 2019 at 20:03

2 Answers 2


Are you trying to mask an existing field or a new one?, if you are trying to create a new field you can use the "Text(Encrypted)" Data Type

DataType Screen


If it's only a few fields with a well-known audience (who should see masked values), create a formula field with a mask and hide the "source" field the by removing it from the page via a page layout. Assign the page layout with a hidden field via a profile / permission set to the aforementioned audience. This would only work if the user can't see the "source" field via any other means.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .