How to remove show button for Masked variable for admins?

Rajesh Mushke
Mega Sage
Mega Sage

Hi All,

How to remove show button for Masked variable for admins?

find_real_file.png

 

Thanks,

Rajashekhar Mushke



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
17 REPLIES 17

Hi Rajashekhar,

I did check the html element for that button is an anchor tag; but it is hidden when the form load

when any key is pressed up or down in that variable i.e. an event happens it shows the button

I did try with jquery on searching hidden anchor tag with id attribute but was unable to remove the anchor tag

you will have to do some trial and error for this

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

VigneshMC
Mega Sage

Not sure if this is the cleanest way, 

Below script works for me in PDI,

function onLoad() {
   //Type appropriate comment here, and begin script below
   document.getElementById("show_button.IO:e4dbdb31db4584104c22e1bb4b961944").innerHTML = "";
}

Get the id from the console, id of the highlighted part

 

find_real_file.png

Hey Vignesh,

 

Thanks for the response, unfortunately not working. can it be possible on RITM and task form as well ?

 

Thanks,

Rajashekhar Mushke



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke

Hi Rajashekhar,

Did you set isolate script = false and set UI type as ALL for that catalog client script

Mark Correct if this solves your issue and also mark 👍 Helpful if you find my response worthy based on the impact.
Thanks
Ankur

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

here is my client script

find_real_file.png

 

Thanks,

Rajashekhar Mushke



Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke