Change Linked to Item with Edit Menu In SharePoint 2016

Linked to Item with Edit Menu in SharePoint List

In this post, we will learn how to change Linked to Item with Edit Menu context for any columns in the SharePoint list using PowerShell as shown below:

Change Linked to Item with Edit Menu In SharePoint 2016 using PowerShell
Change Linked to Item with Edit Menu In SharePoint 2016

Linked to Item with Edit Menu in SharePoint List

By default, the “Title” field is linked to the Item with Edit Menu in SharePoint List as shown below:

Linked To Item in SharePoint List

In some case, you may need to change linked to item with Edit Menu to another column instead of the Title column as shown below:

Change a link to item Menu for a field in SharePoint List Using PowerShell

Although there is no OOTB option to do that, we can use PowerShell script to control the Item Menu for a SharePoint Field by set the “ListItemMenuAllowed” to one of the following values:

  • Prohibited (1): Disallow the List Item Menu for the SharePoint Field.
  • Allow (0): As per my try, I have noted that it does the same thing as Prohibited!
  • Required (2): Allow the List Item Menu for the SharePoint Field.

In this section, we will provide a ready use PowerShell script to can easily enable linked to item with Edit Menu to another column or remove linked to item with Edit Menu for a specific field in SharePoint List by doing the following:

Steps

Run ISE as Administrator
  • Open the downloaded script in Windows PowerShell.
  • Run the “Manage-ListItemMenu()” function with these required parameters
    • -WebAppURL: the Site URL.
    • -List: List Name.
    • -Field: Field Name.
    • -Allow: set it to $True to allow the “link to item” Menu for the specified field in SharePoint List.

Enable linked to item with Edit Menu to another column in SharePoint List using PowerShell

Manage-ListItemMenu -WebAppURL "http://siteURL" -List "ListName" -Field "FieldName" -Allow $True
Allow List Item Menu Context in SharePoint List

As you can see, the eclipse … for the link to item menu has allowed as shown below:

Change a link to item Menu for a field in SharePoint List Using PowerShell

If you have changed your mind and you would like to remove Link to Item with edit menu for a specific column, so you just will need to set the “-Allow” parameter to $False.

Manage-ListItemMenu -WebAppURL "http://siteURL" -List "ListName" -Field "FieldName" -Allow $False
Disallow "link to item" Menu for a different field in SharePoint List

Conclusion

In conclusion, we have learned

  • How to Allow “linked to item with Edit Menu” to another column in SharePoint List?
  • How to Remove “linked to item with Edit Menu” for SharePoint Field?
Applied To
  • SharePoint 2019.
  • SharePoint 2016.
  • SharePoint 2013.
GitHub Download
You may also like
Have a Question?

If you have any related questions, please don’t hesitate to ask it at deBUG.to Community.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top