Hide UI actions when clicking a button

juan casas
Mega Expert

Hi all,

 

I tried the two following methods for hiding buttons when I click a button.

 

Method 1:

$$('#reply_new_view')[0].hide(); // THIS DOES NOT WORK

 

 

Method 2:

    var items = $$('BUTTON').each(function(item) {  // THIS DOES NOT WORK
        item.hide();
    });

 

Each method was performed by it self, the pic below has both methods, and it still don't work.

 Maybe its something to do with the fact that we are using the san diego version?

 

please don't add a link to pages that have one of the methods I used.

 

 

what am I doing wrong?

 

If I hit ctrl+j+^ ( to run on the client side, this seems to work perfect )(see send image below)

 

find_real_file.png

 

 

 

find_real_file.png

1 ACCEPTED SOLUTION

 I ended up doing  UI action visibility

 

 

I was trying to not hit the global obj 😞

View solution in original post

2 REPLIES 2

Community Alums
Not applicable

Hi @juan casas ,

You can use this solution :https://community.servicenow.com/community?id=community_question&sys_id=ea3a33bfdb51c510019ac2230596...

Mark my answer correct & Helpful, if Applicable.

Thanks,

Sandeep

 I ended up doing  UI action visibility

 

 

I was trying to not hit the global obj 😞