
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 10:10 PM
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();
}
});
How to solve please any one can tell me .
Thanks
Sanjay Bagri
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2019 05:12 AM
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')
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 11:07 PM
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

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 11:36 PM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-05-2019 11:47 PM
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.
I hope this helps.Please mark correct/helpful based on impact

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-06-2019 01:01 AM
Id i git but this script i have written in onLoad() client script or need to write some other place .