I want to hide the Update Button

Sanjay Bagri1
Tera Guru

I have tried this script in onload client script but controller is not entering in this script :

this script is not working.

 var items = $$('BUTTON').each(function(item){

 alert("Step -1");
        if(item.innerHTML.indexOf('Update') > -1){
                alert("step -2");
                item.hide();
            }
        });

find_real_file.png

How to solve please any one can tell me .

Thanks

Sanjay Bagri

1 ACCEPTED SOLUTION

Sanjay Bagri1
Tera Guru

Yes i got it solutions for hide the button for specific table

  in ui action conditions i have written below condition only

     current.getTableName == ('table name')

View solution in original post

12 REPLIES 12

@sandhya64u57jtj 

Can you post a new question and tag me there and also share all the details?

Regards,
Ankur
Certified Technical Architect  ||  9x ServiceNow MVP  ||  ServiceNow Community Leader

It should be more like current.getTableName() != '<table name>'

Check KB0692665

kachian
Tera Contributor

This is the best and easiest solution

 

1) Go to UI Action's

2) Open Update button which is on Global Table

3) Change table to your table on which you have to hide this button and then click insert and stay.

4) Uncheck the 'Form button' checkbox.