- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 02:19 PM
Trying to display a ui action in servicnow but not on portal. how to hide it on the portal. I tried this in client script in the widget but didn't work
hideButtons();
function hideButtons(){
$('button[name="ui action name here"]').hide(); }
Solved! Go to Solution.
- Labels:
-
Service Portal Development

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 02:38 PM
Hi,
I haven't tried this, but can you try and see if you can accomplish this via CSS?
such as (EXAMPLE😞
button[name=update] {
display: none;
}
So you'd place this in the CSS for the widget. Although you may need to try it in the page CSS as well.
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 04:17 PM
Can you try to go to the UI Action, scroll down to the bottom, and in the UI Action Visibility section, exclude the Service Portal view? (if that is your view)...you'd need to find out your view to ensure, but usually it's: Service Portal
Please mark reply as Helpful/Correct, if applicable. Thanks!
Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 04:23 PM