Join the #BuildWithBuildAgent Challenge! Get recognized, earn exclusive swag, and inspire the ServiceNow Community with what you can build using Build Agent.  Join the Challenge.

Hiding buttons

julianada-s
Tera Expert

Hi Guys, 

Do you know how do I hide / remove/ deactivate the buttons on the botton list ("2" )of the forms and leave the upper buttons "1"? So they are not duplicated? Whenever I deactivate on the Ui Actions, it deactivates on both places. 

Tks!! 🙂

1 REPLY 1

Sheldon  Swift
ServiceNow Employee
ServiceNow Employee

Hi @julianada-s - I'm not sure there's a way to do this without a doing something like this in a client script (which is not recommended):

 

function onLoad() {
    var actionName = 'reject';
    var targetId = '#' + actionName + '_bottom';

    if (typeof jQuery !== 'undefined') {
        var el = jQuery(targetId);
        if (el.length > 0) {
            el.hide();
        }
    }
}