cancel
Showing results for 
Search instead for 
Did you mean: 
abhi1982
Nintex Newbie

Hide delete button

Jump to solution

Hi All

I am trying to hide the actions menu and delete button from the ribbon. I am usng the JS below which works fine when I try it in browser console but does not work when I add this to Nintex form custom JS section. Any idea why this would not work and also if there is another way to hide these buttons/sections?

NWF$(document).ready(function(){

var hidedel=document.getElementById("Ribbon.ListForm.Display.Manage.DeleteItem-Medium");

hidedel.style.display="none";

var abc=document.getElementById("Ribbon.ListForm.Edit.Commit.Cancel-Large");

abc.style.display="none";

var hideactions=document.getElementById("Ribbon.ListForm.Display.Actions");

hideactions.style.display="none";  

});

Thanks

Labels: (1)
0 Kudos
Reply
5 Replies
mlauer
Nintex Newbie

Re: Hide delete button

Jump to solution

Your solution does not prevent to delete an item in list view.

Why not creating an own permission level for list where delete item is not allowed?

0 Kudos
Reply
shaunlub
Nintex Newbie

Re: Hide delete button

Jump to solution

I would recommend you use CSS - see my entry here:

Hide the Pesky Delete List Item button in the Ribbon

0 Kudos
Reply
burkslm
Nintex Newbie

Re: Hide delete button

Jump to solution

Why not just take the permissions away to delete. It won't allow them to delete.

0 Kudos
Reply
abhi1982
Nintex Newbie

Re: Hide delete button

Jump to solution

CSS worked like a charm...Thanks Shaunlub.

0 Kudos
Reply
abhi1982
Nintex Newbie

Re: Hide delete button

Jump to solution

I have removed the delete permission but also wanted to hide the button.

0 Kudos
Reply