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.

Remove the Information preview button on catalog item reference fields from Service Portal

ads4
Kilo Guru

Hello, I'm using a catalog item on my portal which has several reference type fields like location, config item etc. 

There is a imagebutton next to Reference type Field in our Service Portal form. The 'i' button displays a full view of the object of reference. The end user should not have access to this functionality. Pls help to remove it. 

I tried writing this CSS to fix the issue but it doesn't work for me

.field-has-reference > .add-on {
	display:none;
}
1 ACCEPTED SOLUTION

Saurabh Gupta
Kilo Patron

Hi,

If you want to remove this feature for all catalogs, just add a css in sc_cat_item and sc_cat_item_guide page as below

 

.field-has-reference button {
    display: none;
}

find_real_file.png


Thanks and Regards,

Saurabh Gupta

View solution in original post

12 REPLIES 12

Sai Kumar B
Mega Sage

Hi Author,

can you try the below?

.add-on > button.lookup {
   display:none;
}
.field-has-reference .reference {
   display: block !important;
}
.field-has-reference .add-on {
   display: table-cell;
   width: 0px !important;
}

Hello thanks for your reply but the solution does not work for me

find_real_file.png

have you applied the CSS on the right page? can you share any screenshots?

pages should be sc_cat_item and sc_cat_item_guide 

 

Thanks Sai, i was applying the CSS to the wrong page, it works now. 

Would you pls help me to know how we can remove the info button from a single field? And what how can i remove the info button from a single catalog item, as right now it's removing the info button from all the catalog items i'm using on my portal