Hide Activity and comments in requested item

Tadz
Tera Guru
Tera Guru

Hi is there a way to hide:

  • Activity Field
  • Update and Delete Buttons
  • comments field

In requested item?

Capture.PNG

Thanks,

Tadz

11 REPLIES 11

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


sjain
Tera Contributor

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>.