Hide Discuss Button on Table or Scoped App

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-24-2023 10:00 AM - edited 08-24-2023 10:07 AM
We have some customers we've developed custom apps for that do not want the Discuss button. They would prefer all communication take place in the activity log, and do not want to introduce another place for collaboration.
How can we hide the button on just those tables. I've been trying a client script but had no luck so far. I've made sure isolate script is off.
Neither of these work.
function onLoad() {
//Hide Discuss Button
gel('create_collab_chat').style.display = "none";
jQuery('#create_collab_chat').hide();
}
Any ideas?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-26-2023 01:47 AM
To fulfill the request, you can update the condition field on the UI action for the button with the following condition: "current.getTableName() != '<table_name_required>'".
Below is the screenshot for you reference:
Please mark this as correct answer and helpful if it assisted in resolving your query, or mark this helpful if this help you to reach towards solution.
Thanks,
Dharmaraj

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2023 05:22 AM
Thanks for your response Dharmara,
I do not think "Discuss" is actually a UI action as far as I can tell.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-05-2024 01:01 AM
To use Sidebar, you must add the Discuss button to objects that do not have it automatically installed and to custom workspaces where you need to enable Sidebar on an object. After you add the Discuss button, you can create Sidebar discussions.
Before you begin
Role required: admin
About this task
- Customer Service Management (CSM) Configurable Workspace
- CSM Manager Workspace
- Human Resources (HR) Agent Workspace (Configurable only)
- IT Service Management (ITSM) Manager Workspace
- Vendor Management Workspace
Procedure
- Navigate to All and in the filter field, enter ux form actions configs.
- On the UX Actions Configurations screen, select the workspace where you want to create the Discuss button.
- On the UX Actions Configuration - Workspace Action Config screen, select the UX Form Actions Layouts tab.
- On the UX Form Actions Layouts tab, select Task Actions.
- On the Task Actions screen, select the UX Form Action Layout Items tab.
- On the UX Form Action Layout Items tab, select Edit.
- On the Edit Members screen, enter discuss in the Collection field.
Discuss appears in both the Collection and the Task Actions columns.
- Select the Collection column.
- Select Save.
The UX Form Actions Layout - Task Actions screen redisplays.
- On the UX Form - Action Layout Items tab, select Discuss from the UX Form Action Layout Item column.
- On the UX Form Actions Layout Item - Discuss screen, check the value in the Table field:
- If the Table field displays Task, then the Discuss button has been added.
- If the Table field displays Interaction, then select the back arrow. Perform steps 6 through 10 again, but select the Task Actions column.
- Select Save.
If my response proves useful, please indicate its helpfulness by selecting " Accept as Solution" and " Helpful." This action benefits both the community and me.
Regards
Dr. Atul G. - Learn N Grow Together
ServiceNow Techno - Functional Trainer
LinkedIn: https://www.linkedin.com/in/dratulgrover
YouTube: https://www.youtube.com/@LearnNGrowTogetherwithAtulG
Topmate: https://topmate.io/atul_grover_lng [ Connect for 1-1 Session]
****************************************************************************************************************
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-26-2024 04:43 AM
Hi @Mark Endsley - Did you get a solution for this?