How to remove show button for Masked variable for admins?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 09:00 AM
Hi All,
How to remove show button for Masked variable for admins?
Thanks,
Rajashekhar Mushke
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke
- Labels:
-
User Interface (UI)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 07:22 PM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-11-2019 10:43 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2019 07:08 AM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2019 07:45 AM
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
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-12-2019 08:17 AM
here is my client script
Thanks,
Rajashekhar Mushke
Thanks,
Rajashekhar Mushke
Rising star : 2022 - 2024
Community Leader -2018
Connect me on LinkedIn : Rajashekhar Mushke