Adding a Custom UI Action / Icon Next To A Form Field

Jeff Mayrand1
Kilo Expert

I would like to add a custom UI button next to the assignment group field. This button I am intending to use as a escalate to next team for service desk.

Currently when an incident is created I have a AJAX script setup that looks up the supporting team on the CMDB CI that is being reported. I want to extend this to allow for escalation with the click of a button next to the form field.

I don't really need help with code just how to get the button on the form in the first place. Initial searches show how to add them to the header bar. But I would like it as an icon similar to the Magnifying glass next to the field itself.

Thanks in advance!

Jeff

4 REPLIES 4

kmayur
Kilo Contributor

You can refer this article for any help on this.
http://www.servicenowguru.com/system-ui/ui-macros/add-me-ui-macro-user-group-fields/

Basically you need a create a custom UI Macro and write your own script there to set the assignment group on escalation.


Jeff Mayrand1
Kilo Expert

Thanks again for your help! This is exactly what I was looking for!


I want to add my custom image near to the field contact in the Case form.


Is it possible?


As i'm new to the script, Can you please help me to create the reference to the field contact in the case form and add the icon near to that field?



help.png