Hide referenced popup in new Service Portal in Hel

https://community.servicenow.com/thread/227140


Hi,

 

Does anyone know, how to disable the Referenced Icon / Magnifying glass in the new Service Portal (Helsinki) on a Record Producer. The popup should stay available globaly, only for some purposes, f.e. on some Record Producers the popup of Referenced Variables should be deactivated. I did not found any hint in wiki, docs or serviceportal.io.

 

Hide referenced popup in new Service Portal in Hel_Hide referenc popup

Maybe there is a way to set options in the widget. I would like to avoid any kind of client scripts and DOM manipulations 

***** 

Innovate - Design - Manage - Create - Supply - Transform

Hide referenced popup in new Service Portal in Hel_Hide referenc popup_02正确答案作者: Brett Karl 在 2016-7-15 上午6:23

Hi Konstantin,

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

Take the following CSS code and apply it to one of those areas.

  1. .add-on > button.lookup {  

  2.   display:none;  

  3. }  

  4. .field-has-reference .reference {  

  5.     display: block;  

  6. }  

 

This will affect all reference fields on the portal/site/widget (whatever you decide). If you would like to specify a single item, you will need to right click on your element in the portal, select "inspect element" and obtain the sys_id or field id, if possible, to be more specific.

 

  1. #\31 30077b64f2ca200ef61f9718110c7ba > fieldset > span > span > div.add-on.ng-scope > button {  

  2. display: none;  

  3. }  

  4. .field-has-reference .reference {  

  5.     display: block;  

  6. }  

Final result

Hide referenced popup in new Service Portal in Hel_Hide referenc popup_03