- 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 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 02:44 PM
Didn't work

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 03:08 PM
What did you use for the name?
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 03:48 PM
I tested using simply by "Save" button and then i added name of my ui action "Submit Review". It didn't work in both cases. Using custom Form widget not oob though