Can I move the email icon in UI16 back to where it was in UI15?

aessling
Mega Expert

In UI15 the email icon in tickets was on the bar at the top of the window. Now I have to click on more More options button and then select Email. Is there any way to move the Email icon back on to the bar?

UI15

email ui15.png

UI16

email ui16.png

1 ACCEPTED SOLUTION

josephcustodio
Mega Contributor
12 REPLIES 12

Brad Tilton
ServiceNow Employee
ServiceNow Employee

Hi Anthony,



Unfortunately I haven't found a way through the UI to move the email icon out of that menu and back into the form header. I would guess you could probably write some client side js and put it in a client script or global ui script to do it, but I haven't actually seen that done.


Goran WitchDoc
ServiceNow Employee
ServiceNow Employee

You could do your own UI Action like this(Very simple and can probably do it more complex, but this will get you started 😃 😞



mail client 1.PNG



//Göran


HI ,


I tried your logic. it works but anyhow   mail icon is showing on top of form near save, update button   and Bottom of form near save,update button .


Suggest a way to show the email only on top.


bnine
Kilo Contributor

I used Goran Lundqvist's advice ^ to create my own UI Action. I also plan on using Cory Seering's code snippet reply on a related question Re: How to call emailClientOpenPop() in UI action? to try to modify it for our needs



But to get the button to look the same as the UI15 mail icon, I made an onLoad client script with the following code:



document.getElementById("email_client_pop").setAttribute("class", "btn btn-icon icon-mail");


document.getElementById("email_client_pop").setAttribute("src", "images/icons/email.gifx");



(email_client_pop is my own version UI Action. The original had an id of email_client_open)


P.S. I also had to leave the Name field blank on my UI Aciton.