function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Mohammed JunaidMohammed Junaid 

Text(encypted) ...........

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

*werewolf**werewolf*

One option is to make the field a regular Text field but to do the encryption in an Apex trigger and store the encrypted text in that field.  Then you'll have full access from Apex to decrypt it when needed.