Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

How to hide Activity tab in HR tasks in Service portal

rvgr
Tera Contributor

Hello,

I try to hide the activity tab for HR Task for the Onboarding
I tried from "Standard Ticket configuration" for the 3 tables below, with "answer = false, or other conditions" for activity, in the visible script but nothing works.
- sn_hr_core_task (new creation)
- sn_hr_le_case
- sn_hr_core_case

The printscreen is from my PDI

Appreciate your help in advance.

1 ACCEPTED SOLUTION

Sandeep Rajput
Tera Patron
Tera Patron

@rvgr I tried to reproduce the same issue and after viewing the attached screenshot, I realised you are trying to handle configuration of HR Task tabs via standard ticket configuration for HR Case.

 

HRC0000711 - Employee Center.jpeg

 

In order to hide the tabs of HR Task, you need to apply the following changes.

1. Navigate to HRM Task AHC Widgets available inside Service Portal >> Widgets

2. Set the application scope to Employee Center Core

3. Navigate to Client Controller

4. On line number 50 set display:false; 

Refresh the page and check Activity tab should no longer be visible.

 

Screenshot 2023-10-04 at 7.56.12 PM.pngScreenshot 2023-10-04 at 7.59.11 PM.png

 

Caution: Please be informed that this is going to be a customisation in an OOTB widget which might get skipped during upgrade. Please apply this change if it is absolutely necessary.

View solution in original post

3 REPLIES 3

Sandeep Rajput
Tera Patron
Tera Patron

@rvgr I tried to reproduce the same issue and after viewing the attached screenshot, I realised you are trying to handle configuration of HR Task tabs via standard ticket configuration for HR Case.

 

HRC0000711 - Employee Center.jpeg

 

In order to hide the tabs of HR Task, you need to apply the following changes.

1. Navigate to HRM Task AHC Widgets available inside Service Portal >> Widgets

2. Set the application scope to Employee Center Core

3. Navigate to Client Controller

4. On line number 50 set display:false; 

Refresh the page and check Activity tab should no longer be visible.

 

Screenshot 2023-10-04 at 7.56.12 PM.pngScreenshot 2023-10-04 at 7.59.11 PM.png

 

Caution: Please be informed that this is going to be a customisation in an OOTB widget which might get skipped during upgrade. Please apply this change if it is absolutely necessary.

Thanks a lot Sandeep!

Hi @Sandeep Rajput  - I'm able to display the Details and Activity tab for Request and HR Approvals, but I configured Change and Knowledge Todos Approvals separately but these 2 tabs are not visible, how to show those ? Is there any way to show ? If I create a separate widgets for this then I should include anywhere?