
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 02:22 AM
I have a custom table. When i open its form, fill it and save it a record gets generated.
When i open this particular record, update and delete buttons appear on the form which i dont want to appear.
How to hide them on load of the form of any record. I mean if i open that record, these 2 buttons should not be visible on the form.
Any help please.
Solved! Go to Solution.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2016 11:18 PM
Hi Brian,
Thanks for the suggestion, i tried modifying condition for update ui action and added condition as tablename != (my custom table's name) and it worked. I did the same for delete ui action as well.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 02:23 AM
I also tried the following:
var items = $$('BUTTON').each(function(item){
if(item.innerHTML.indexOf('Update') > -1){
item.hide();
}
});
This didn't work.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 02:26 AM
Try This:
function onLoad() {
hideIncidentButton('update');
hideIncidentButton('delete');
//add more button name
function hideIncidentButton(button) {
//Remove button
var items = $$('BUTTON').each(function(item){
if(item.innerHTML.indexOf(button) > -1){
item.hide();
}
});
}
}
check this post:how to hide the button if state is rejected
please mark helpful or correct if applicable
Thanks,
Farukh

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎10-02-2016 10:52 PM
It did not work, the buttons are still appearing on the form.

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎09-30-2016 04:08 AM
HI Vineetha,
My recommendation for hiding these buttons would be to adjust the condition in their respective sys_ui_action record. UI Actions will only be presented if the condition is met. Hiding the buttons through client script may create a sluggish user experience, and may even be shown to the users for a brief moment, so I think this is a better approach to handling this.
Thank you,
Brian