In SOW, Only from EPIC and Theme list hide collaborate section.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @all ,
In SOW, I have created new list 'Epic' and 'Theme' only for this two list I want to hide Collaborate section.
In SOW, Epic and Theme have created new record 'Test' after saving records, collaborate section is visible, I want to hide it.
If anyone have worked on this or have any information, if it is possible, please let me know, it will be helpful.
Thank you!
Epic
Theme
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
3 weeks ago
Hello @shrutijibhekar
Table Name: sys_ux_screen.do
Sys_id: 5b6751eb43b62110361dff53e9b8f2b1
Active: False -> This will hide it from all forms (hide it from the side floating panel).
Scroll down to UX Screen Conditions and open the only record (table name :sys_ux_screen_condition)
Modify the script to include your tables as shown below with an example of incident and problem:
(function showCollaborateTab(params) {
var table = params.data.table;
var sysId = params.data.sysId;
// Hide Collaborate tab on Incident
if (table === 'incident' || table === 'problem') {
return false;
}
if ((sysId === '-1') || gs.nil(table) || gs.nil(sysId)) {
return false;
}
var recordGr = new GlideRecord(table);
if (recordGr.get(sysId) && recordGr.canWrite()) {
var utils = new sn_sow_collab.SowCollabUtils();
return utils.canViewCalls(table, sysId) || utils.canViewChats(table, sysId);
}
return false;
})(inputProperties);
Validation Results:
Can be seen on CR form:
Can't be seen in Incident and problem forms:
Hope that helps!