
- 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
10-19-2023 02:00 AM
Can you post a new question and tag me there and also share all the details?
Ankur
✨ Certified Technical Architect || ✨ 9x ServiceNow MVP || ✨ ServiceNow Community Leader
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-14-2024 04:12 AM
It should be more like current.getTableName() != '<table name>'
Check KB0692665
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-01-2024 09:11 AM
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.