How to mask a field on form

Nitesh Chandana
Kilo Expert

Hello,

  I need to mask field on the form as we mask on record producer by using mask type. I doesn't want to use password type.

Can anyone help me out??

Thanks,

Nitesh

1 ACCEPTED SOLUTION

Hello Nitesh,



From Istanbul and Jakarta version, If you use a password(encrypted type 2). it will automatically mask the field on service portal. there by you can decrypt that by the following code:



var Encrypter = new GlideEncrypter();


var encrypted = current.variable name;


var decrypted = Encrypter.decrypt(encrypted);


current.u_client_instance_password = decrypted;


current.update();


View solution in original post

10 REPLIES 10

Tanuj8
Kilo Contributor

Hi , it is masking at the portal. But at the back end form when i am viewing the record as an admin user i am able to see the values in the XML. Any workaround for this.?