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.

How do you show the glyph icon in the Menu item /sub menu using script of Service Portal?

Virendra K
Kilo Sage

Hi All,

I have created a menu item and want to show glyph icon using script. please refer the below red marked menu snap.

find_real_file.png

Please guide me. Thanks in advance.

Regards,

Virendra

 

1 ACCEPTED SOLUTION

Hi,

Yes. it's html, sorry.

If your sub menu items are listed out 3 lines, 1 for each item, then place that in front of each one.


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

View solution in original post

12 REPLIES 12

Allen Andreas
Tera Patron

Hi,

Please see this thread for assistance: https://community.servicenow.com/community?id=community_question&sys_id=5d52c3eddb98dbc01dcaf3231f96...

Please mark reply as Helpful/Correct, if applicable. Thanks!


Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thanks, Allen for your quick response.

I read that post and did the changes, but its getting applies to all menu and I want only for those 3 sub menu items.

Any idea ?

Thanks

Perhaps try adding this instead before each of the sub-menu items:

<span class="glyphicon glyphicon-search" aria-hidden="true"></span>
Change search in glyphicon to the name of the icon you're trying to use.

https://getbootstrap.com/docs/3.3/components/#glyphicons-how-to-use



Please consider marking my reply as Helpful and/or Accept Solution, if applicable. Thanks!

Thanks. Let me try this code.