Get a first look at what's coming. The Developer Passport Australia Release Preview kicks off March 12. Dive in! 

To Add UI Action Button in Employee Center

saha_1
Tera Contributor
 

I want to add Copy Incident UI Action an addition dropdown in Actions Button in Employee Center, Please guide me how can I achieve that. UI Action Button in ServiceNow12.jpg

1 REPLY 1

Dinesh Chilaka
Tera Guru

Hi @saha_1 ,

To add an one more action in those actions widget is not easy way.OOB widget Incident Standard Ticket Actions, you need to clone this widget and add the new button in the HTML code of this widget

<div>
    <div class="dropdown" id="child-case-tabs" ng-if="data.showActions">
        <button type="button" id="actions-button" class="btn btn-default dropdown-toggle action-btn" data-toggle="dropdown" style="width : 100%" aria-haspopup="true" ng-init="setFocusOnActionButtons()">
            ${Actions}
            <span class="fa fa-caret-down"></span>
        </button>
        <ul class="dropdown-menu pull-right" id="actionList">
            <li ng-if="data.canResolve">
                <a href="javascript&colon;void(0)" ng-click="$event.stopPropagation();resolveIncident()">${Resolve}</a>
            </li>
            <li ng-if="data.canReopen">
                <a href="javascript&colon;void(0)" ng-click="$event.stopPropagation();reopenIncident()">${Reopen}</a>
            </li>
            <li ng-if="data.canClose">
                <a href="javascript&colon;void(0)" ng-click="$event.stopPropagation();closeIncident()">${Close}</a>
            </li>
            <li ng-if="data.canCopy">
                <a href="javascript&colon;void(0)" ng-click="$event.stopPropagation();copyIncident()">${Copy Incident}</a>
            </li>
        </ul>
    </div>
</div>

 

Like this and you can also need to write the code in the server side and the client side controller to perform action after clicking on that button.

Instead there is one more approach, you can make Action widget field empty of the following record  33ad80e787f10010e0ef0cf888cb0b87 (sys_id) and add the records in the standard ticket actions related how it is showing in the following image.

 

Screenshot 2026-03-17 at 3.25.22 PM.png

If my response helped, mark it as helpful and accept the solution.