Hide Discuss Button on Table or Scoped App

Mark Endsley
Tera Guru

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?

4 REPLIES 4

Dharmaraj5
Tera Contributor

Hi @Mark Endsley 

 

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:

Dharmaraj5_0-1693039438978.png

 

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

 

Thanks for your response Dharmara,

I do not think "Discuss" is actually a UI action as far as I can tell.

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

You do not need to add the Discuss button to these workspaces because it is automatically installed:
  • 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
For details on adding the Discuss button to any workspace not listed (such as the Service Operation Workspace), see KB article KB1213249
Note: After you add the Discuss button, you must configure the activity stream. For more information, see Activity stream in Sidebar.

Procedure

  1. Navigate to All and in the filter field, enter ux form actions configs.
  2. On the UX Actions Configurations screen, select the workspace where you want to create the Discuss button.
  3. On the UX Actions Configuration - Workspace Action Config screen, select the UX Form Actions Layouts tab.
  4. On the UX Form Actions Layouts tab, select Task Actions.
  5. On the Task Actions screen, select the UX Form Action Layout Items tab.
  6. On the UX Form Action Layout Items tab, select Edit.
  7. On the Edit Members screen, enter discuss in the Collection field.
    Discuss appears in both the Collection and the Task Actions columns.
  8. Select the Collection column.
  9. Select Save.
    The UX Form Actions Layout - Task Actions screen redisplays.
  10. On the UX Form - Action Layout Items tab, select Discuss from the UX Form Action Layout Item column.
  11. 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.
  12. 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]

****************************************************************************************************************

Hi @Mark Endsley  - Did you get a solution for this?