The CreatorCon Call for Content is officially open! Get started here.

Remove Info Icon on Service Portal - Only one field

Khanna Ji
Tera Guru

Hi All,

I have a drop down reference field on Catalog item. I do not want to allow user to see other details of the referenced records. For this I need to hide the Info button on the reference variable. I found below KB but its for all fields on the SP. I need it only for one field.

https://hi.service-now.com/kb_view.do?sysparm_article=KB0714594

3 REPLIES 3

Priyanka Chandr
Mega Guru

Hi,

You won't have to do DOM manipulation, but you would have to use some CSS. You have a few options as to where to apply this in your portal:

 

  1. Entire Portal
  2. Per Page
  3. Per Widget

Please have a look 

https://community.servicenow.com/community?id=community_question&sys_id=e02fc3e1dbdcdbc01dcaf3231f96...

Kindly mark it correct and helpful if it is applicable.

Thanks,

Priyanka

Cuong Phan
Kilo Sage

Hi SU,

 

Please change your CSS to this

- Change #sp_formfield_reference_  + "Field Name"

#sp_formfield_reference_u_manager  .add-on{

 display:none;

}

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

 

Cuong Phan

DXC Consultant.

Regards,
Cuong Phan
ServiceNow Technical Lead

Davin Biggs
Tera Contributor

Just a warning, using the CSS above will break in Orlando, as I have found out to my detriment.

You could use a Lookup Select Box variable type rather than a Reference, no CSS required and no Info Icon displayed.

If you need to use CSS, the following seems to work in Orlando:

.add-on > button.lookup {
  display:none;
}

Good luck!