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
2 weeks ago
I did this on one of my customers instance and this will solve the problem:
1. In the application menu go to declarative actions > form actions
2. Search for Action label "Open create collab chat modal" -> Choose the one applying for your app (Task table if your table is a child of it)
3. On the record you will see a related list "Action Exclusions"
4. Open that related list in a new window to have it filtered for the Action (Table name "sys_workspace_declarative_action_exclusion")
5. Create a new record with following details:
- Action assignment: keep as is
- Table: Insert the table where you want to hide it
- Exclude this table: true
- Exclude all child tables: true if you want child tables under your app table also to hide it
- View: If needed add a specific view to hide it
6. Submit the record and you should see it under the related list "Action Exclusions" in the Declarative Action
Action should be hidden now on your form.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2 weeks ago
Alternatively you can create a record in table [sys_cs_collab_enabled_table] for your table and set active=false. It should also hide the button
