Can a form button be created as an icon?

aaronstanley
Kilo Explorer

We want to add the 'Print Preview' UI Action to the incident form but rather than using a text button I'd like to use the "icon-print" icon. So far I have not found a workaround for this searching the forums.

Ultimately, the goal would be to have the print-preview icon either on the header to the left of the regular text-based buttons or in the 'more options' dropdown. The use case is that we ghave techs that will open multiple incident forms in separate tabs to provide updates and they will occasionally print the forms.

1 ACCEPTED SOLUTION

Srinivas Balusu
Kilo Guru

Yes, You can.



Below is an nice article with working solutions from ServiceNow Guru.



https://www.servicenowguru.com/scripting/client-scripts-scripting/button-colors-icons/


View solution in original post

4 REPLIES 4

Srinivas Balusu
Kilo Guru

Yes, You can.



Below is an nice article with working solutions from ServiceNow Guru.



https://www.servicenowguru.com/scripting/client-scripts-scripting/button-colors-icons/


This is close but it doesn't perform the task I need it to. What I really want is an icon and not the text. Something similar to the 'attachments' icon or the 'more options' icon.



This has to be easier than it appears but so far I haven't found a solution.


With some ugly tinkering this will work. Mostly just removing existing classes and adding classes similar to the regular icons.


Ok. I will post more if I can found anything similar.