How hide some fields from "i" or "Info" button on Requested for catalog item variable in the portal

Ken61
Giga Guru

Hello Community,

 

I have a requirement to hide some fields from "i" or "Info" button on "Requested for" or "Requestor" catalog item variable in the portal. Because when it is a request for, one user can choose another and should not be able to see all the fields of the other user. This is only applicable to service portal. Below is the screenshot 

How can I be able to hide some important fields and only display few user information. 

Ken61_0-1733453706812.png

Thank You

1 ACCEPTED SOLUTION

Hi @Ken61 

 

https://support.servicenow.com/kb?id=kb_article_view&sysparm_article=KB0823295

 

*************************************************************************************************************
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]

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

View solution in original post

5 REPLIES 5

Bhavya11
Kilo Patron
Kilo Patron

Hi @Ken61 ,

 

To hide the reference field Information icon.

Navigate to sp_page.list and open sc_cat_item page

Add below code in CSS field of the page 

.field-has-reference > div.add-on > button {
display : none;
}

above configuration is applicable for all users(including admin), there is no method to apply the logic based on user role.

 

 

or you want to do for specific variable then follow this step

 

update the css on sc_cat_item page with for specific variable then copy id using console

Bhavya11_0-1733460628062.png

 

 

#sp_formfield_reference_group_name > div.add-on >button { /
display : none;
}

In the CSS field add the above CSS code (replace "sp_formfield_reference_hiring_manager" with your ID value)Save and then reload portal page

 

 

Dr Atul G- LNG
Tera Patron
Tera Patron

Hi @Ken61 

 

It is sys_userpopup . You need to make changes in sys pop up view and its done. 

*************************************************************************************************************
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]

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

Shruti D
Kilo Sage

Hello @Ken61 
 1. Navigate to the sys_user table. 

 2. Right-click on the list header, and choose Configure->Form Layout
     In the "Form view and section" area, select the View name drop-down list and select "Sys_popup".

 

Shruti_19_1-1733481512769.png

 

 3. Add/remove fields for sys_popup view from slush bucket and configure it as per requirements. Now click on Save.

Please Mark Correct ✔️if this solves your query and also mark Helpful 👍 if you find my response worthy based on the impact.

Regards,
Shruti

 

@Shruti D @Dr Atul G- LNG  Thanks for your response, but I did not have sys_popup in the view area.