Creating a Completely New Button in Service Catalog Task

omnikb
Kilo Contributor

How do I create a new button similar to what's shown in the attached image?   We had a professional services company come in and do a bunch of custom stuff, and I'm still learning the system.   In addition to the Close Complete and Close Incomplete, I need to add a new button for a specific form that will allow me to "Approve with Conditions".   Ultimately, the workflow and such will stay the same, I just need to be able to track the chosen state in the task table.

Extra button.PNG

Extra button 2.PNG

Thoughts? Questions?

2 REPLIES 2

Harsh Vardhan
Giga Patron

to create a button on form you can use UI Action.



UI Actions - ServiceNow Wiki



what's you want when ever user will click on that button then you need to define the logic in script box .



https://www.servicenowguru.com/scripting/client-scripts-scripting/identifying-ui-action-clicked-subm...


Harsh Vardhan
Giga Patron

i missed on more important things.



if you want to show the button on service catalog task form. then you need to choose sc_task table.