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

amlanpal
Kilo Sage

Hi Sanjay,

 

Please use the below code snippet to hide the button. All you need to get the ID of the button by inspecting the element.

document.getElementById("Your_button_ID").style.visibility="hidden";

 

I hope this helps.Please mark correct/helpful based on impact

can you tell me how we will get the button id from the button.

please tell me i don't know and i have tried by inspect the form.but not getting.

Hi Sanjay,

 

If you are using Google Chrome as your web browser use Ctrl+Shift+C in order to inspect an element (For Reference: https://designtlc.com/use-chrome-inspector-edit-website-css). Then hover your mouse over the button and find the Id of the element. You may refer the snapshot below.

 

find_real_file.png

 

 

 

I hope this helps.Please mark correct/helpful based on impact

Id i git but this script i have written in onLoad() client script or need to write some other place .