Remove or Hide SharePoint List’s Menu Options

The following jQuery based JavaScript function can be used to remove the “Edit in Datasheet” option from a SharePoint list. Add a Content Editor Web Part to the list’s standard view and include the following script in the source. The menu option will be removed when the page is loaded. The function can be modified or expanded to remove any option using the menu option’s displayed text.

The jQuery library will need to be loaded in order for the function to work properly:

The function to remove the “Edit in Datasheet” menu option:

Leave a Comment