Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

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 ACCEPTED SOLUTION
2 REPLIES 2

Sheldon  Swift
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();
        }
    }
}