Hide Activity and comments in requested item

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎02-26-2016 08:38 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎04-17-2016 04:11 AM
In my case I rather hide the ui buttons like this since they are global buttons and I don't want touch them
I also read but never tried this thou:
1.for example Save is a global UI Action
2. I want it to hide on incident
3. Create a ui action on the table incident with the same action name(sysverb_update_and_stay) and set the condition to false.. Then the global save hides as well
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-25-2018 12:50 AM
You can achieve this using On Load Client script:
//Hide "Activities (Filtered)" section
$j('.sn-form-stream-init').hide();
This will hide Activity section with Comments and Work notes fields. Here sn-form-stream-init is the class name of Activity section in HTML.
To hide buttons, you will have to find the Div ID or Class Name from the HTML for that button and then you can use following code in client script to hide it:
//Hide Update Button at the bottom of the Form
$j('.form_action_button_container').hide();
Here form_action_button_container is the class name of Button in HTML.
You can use .<class name> or #<Div ID>.