You need to sign in to do that
Don't have an account?
thorsten_d
Encrypted field not shown in visualforce page when used in layout
Hi,
I've found a strange behavior when using encrypted fields in visual force pages.
My simple test page works fine when I call it directly via URL. The value is shown without the mask, since I've the permission.
<apex:page standardController="Contact"> <apex:outputField value="{!Contact.encryptedCustomerId__c}"/> </apex:page>
But when I use that page inside the Contact Layout, the value is shown masked.
In the real scenario I would like to use the encryptedCustomerId__c by a controller extension to look up the corresponding object.
Is this a bug or a feature?
Many thanks
Thorsten
Hi thorsten_d,
I am not sure if this is a bug or a feature but i know of a workaround.
Link:
https://help.salesforce.com/apex/HTViewSolution?language=en_US&urlname=Encrypted-fields-are-being-masked-in-a-VF-page-when-embedded-into-a-standard-layout-1327109986153
Regards,
Satish Kumar
Please mark my answer as a solution if it was helpful so it is available to others as a proper solution.
If you felt I went above and beyond, please give me Kudos by clicking on the star icon.