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
Ravi_SFDCRavi_SFDC 

Regarding the Text (Encrypted) Data Type

I am having the as field as Text (Encrypted) Data Type and its displayed in the UI as XXX-XX-8369, but I want the display in the UI as XX-XXX8369. Need help on this.

Thanks 
Ravi
AbhinavAbhinav (Salesforce Developers) 
Hi Ravi,

This is standard functionality based on the mask type you will get the ' - ' place between characters.

You can check available option for mask type while creating field  are --None--Mask All Characters ,Last Four Characters, Credit Card Number, National Insurance Number, Social Security Number ,Social Insurance Number 

If it helps mark it as best answer.

Thansk!
AnkaiahAnkaiah (Salesforce Developers) 
Hi Ravi,

As per salesforce out of box functionality, you can able to format the Text (Encrypted) Data Type using below mask types.

User-added image

You need write custom to displasy as per your requirement.

Thanks!!
Ravi_SFDCRavi_SFDC
Hi Abhinav,

I have checked completely this, neither of these works for me. So need help on this to have XX-XXX8369.

Thanks