How to hide icon for reference field in portal?

ManikandanP7586
Tera Contributor

I want to hide the icon for a reference field in the portal view (Form Widget), but it should remain visible and functional in the form view. Is there any out-of-the-box (OOTB) functionality available to achieve this?

1 ACCEPTED SOLUTION

debendudas
Mega Sage
Mega Sage

Do you want to hide the ( i ) icon from reference fields like the one shown below??

debendudas_0-1761829147022.png

 

You can use the following CSS on the page:

.field-has-reference .add-on {
    visibility: hidden; /* display: none; breaks the field layout */
}

 

But just out of curiosity - why do you want to hide it?

 

If this solution helps you then, mark it as accepted solution ‌‌✔️ and give thumbs up👍

View solution in original post

6 REPLIES 6

Cheikh Ahmadou
Kilo Sage
Hi @ManikandanP7586 ,

I do not really think that it is possible to do it only for Service Portal.
However, you might be able to hide it by manipulating the DOM (for example, using custom CSS or in client script in the portal widget).
Try that approach.

Regards,
Cheikh

Ankur Bawiskar
Tera Patron
Tera Patron

@ManikandanP7586 

are you talking about the i icon?

share screenshots

Are you saying it should be hidden for only 1 particular reference field in Form widget and not for other forms in portal?

 

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

Yes i need to hide in widget level

@ManikandanP7586 

on which widget? which portal page? share screenshots.

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader