You need to sign in to do that
Don't have an account?
Mohammed Junaid
Text(encrypted)
Hi,
I am having an custom field of Type(encrypted).
When i am viewing the Text field in UI,it is displaying my ******.
I know we can achieve it by this
http://developer.force.com/cookbook/recipe/storing-and-displaying-confidential-information
But i want to access this field in controller or at Page level to display.
I dont wanna create a duplicate of this field in the custom Object.
Please if any one has come across this situation or Know the solution please reply.
Thanks for your Time and reply.
Regards,
Mohammed Junaid
Apex operating in System Mode has the ability to decrypt encrypted fields. Users are not able to view the plaintext values of encrypted fields unless they have the "View Encrypted Data" permission on their User Profile.
Once the value hits the page, it is in User context. That is, if the user does not have the permission to view encrypted data, you cannot tell the page layout to decrypt it for them. You must either decrypt it yourself in Apex code, or grant the user permission to view the plaintext.