How to Hide UX workspace form buttons using client script?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 09:02 AM
How to Hide UX workspace form buttons using client script.
im trying to hide "close task" button on sc task on workspace only for a particular catalog item, which normally can be hidden via onload client script like this
var action_name = 'close_sc_task';
var selector_sub = 'button#' + action_name;
var selector_sub_btm = 'button#' + action_name + '_bottom';
$j(selector_sub).each(function() {
$j(this).hide();
});
any idea how to do it?
2 REPLIES 2
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-18-2025 09:09 AM
DOM manipulation won't work
Why not add conditions in that form action?
current.request_item.cat_item.name != 'Your Item'
If my response helped please mark it correct and close the thread so that it benefits future readers.
Regards,
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2025 01:10 AM
i was thinking of the same, but thought DOM could have simplified the impacts