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

Subhadip Saman1
Mega Expert

Try adding the below CSS in the Page Specific CSS of the page where the widget is placed:

button.lookup {
  display: none;
}

Hope this helps!

Hello, thanks for replying, but it Doesn't work for me. 

find_real_file.png

Saurabh Gupta
Kilo Patron
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

Hi Saurabh, this is helpful, thanks

What if i'm using 3 different catalog items & want to remove the info button from a single catalog? 

And how can i remove the info button from a single field?

Hi,

For that you can write client script and manipulate the DOM, but that is not a recommended way.


If my answer replied your question please mark appropriate response as correct so that the question will appear as resolved for other users who may have a similar question in the future.

Regards,
Saurabh


Thanks and Regards,

Saurabh Gupta