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

Assistance Needed: Disable Delete option from the list item menu

Hi ,

 

I am trying to disable or remove the delete option from item menu from the nitex form lists. Please refer the below screenshotDisable_Delete_Button.JPG

 

Please advice me is there any way to do.

 

Thank you.

 

Labels: (1)
0 Kudos
Reply
2 Replies
Highlighted
Nintex Newbie

Re: Assistance Needed: Disable Delete option from the list item menu

You can  make a new permission level and set it to limited access or you can try the following:

1.-Add CEWP web part on your lsit page.

2.Create a text file called hidedelete.txt.

3.Copy the  code in the txt file, upload the text file to your Shared document.

4.Edit the CEWp, put the following in content link.

/Shared Documents/hidedelete.txt

 

<script type="text/javascript" src="http://code.jquery.com/jquery-latest.js"></script>
<script type="text/javascript">
$('.ms-MenuUIPopupBody').live('mouseover', function() {  
       
 $('#ID_DeleteItem').parent().hide();//if list use "#ID_DeleteItem" if library use "#ID_DeleteDocItem"
// Here you need judge the status, if the statue is appoved, then execude the following code.
 $('#ID_DeleteItem').remove();         
         });
</script> 

 

0 Kudos
Reply
Highlighted
Nintex Newbie

Re: Assistance Needed: Disable Delete option from the list item menu

Hi ,

 

Thank you for your help. I tired with your second approach by adding the CEWP web part on my lsit page. please see the attachment for the same.

 

After setting up the content url in CEWP. the list is empty.

 

Kindly help me on this.

 

Thank you.

 

0 Kudos
Reply