Encrypting/Masking Variables in a Catalog Form (Integer field and String Field)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2015 02:18 AM
Hi All,
We have a requirement here to make two of the catalog fields, in a form, encrypted/masked. (Basically the client wants us to make the fields look like a password field where and when user types in the text or integer it comes up in "*****" format or hidden format).
So , how to do that for a variable type string (Text Box) or Integer field? Anybody can help here?
Will that appear in the same way in the RITM form and TASK form?
And what will be the process to decry-pt or unmask it?
Thanks in Advance,
Shahid
- Labels:
-
Integrations
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-23-2017 05:25 AM
can you tell on which table BR should be written
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2015 04:16 AM
Check OOTB Script include "RESTMessage" . There you will find how to encrypt and decrypt field value. Then you could create a script include from this code and call that script include using GlideAjax in onSubmit client script to return encrypted value and then set that encrypted value in the field.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-22-2015 04:30 AM
HI Gurpreet,
Thanks for different options here.
But the actual requirement is to make the field exactly look like a password field, in which the HTML scripting option sounds like and option.
Still i am not able to come up with a way where i can write a script to encrypt the value in RITM and TASK level.
So can you suggest me something like a BR or a CS which is easy to maintain.
RGDS,
Shahid
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-28-2015 11:22 AM
You could add an On Load rule that grabs the password field, and changes the type.
Something like this:
function onLoad()
{
//Type appropriate comment here, and begin script below
g_form.getControl('password_field_name').type= "password";
}
However, this will only affect when viewing the form itself.
The script will not show "****" when viewing from a list.