Assistance Needed: Disable Delete option from the list item menu

  • 19 September 2019
  • 2 replies
  • 7 views

Badge +1

Hi ,

 

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

 

Please advice me is there any way to do.

 

Thank you.

 


2 replies

Badge +11

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> 

 

Badge +1

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.

 

Reply