How to Enable ECB menu on custom column in SharePoint 2013?

This SharePoint tutorial explains, how to enable ECB menu on custom column in SharePoint 2013. By default the ECB menu comes for the Title column where user can click on the ECB menu to do some operations like Edit Item, View Item, Workflows, Delete Item etc. See the fig below:

enable ECB menu on custom column in SharePoint 2013
enable ECB menu on custom column in SharePoint 2013

But here one of our requirement is to add the ECB menu into a custom column. I have a custom list wherein the Title column the ECB menu is there by default but I wanted to put the ECB menu in a custom column name as the First Name.

Enable ECB menu on custom column in SharePoint 2013

We can do this by using SharePoint designer. Open your site in SharePoint 2013 designer and then click on the particular list for which you want to do. This will open the settings page for the list. From the Views, section click on the particular view (All Items).

This will open the code view and there search for the <View> tag and within that <ViewFields> and then find the particular column for which you want to add the ECB menu and then add ListItemMenu="TRUE" like below:
<FieldRef Name="First_x0020_Name" ListItemMenu="TRUE"/>

It will shown like below:

how to enable ECB menu on custom column in SharePoint 2013
how to enable ECB menu on custom column in SharePoint 2013

After that Save and refresh the list and you will be able to see the ECB menu as shown in the fig below:

how to enable ECB menu on custom column in SharePoint online
how to enable ECB menu on custom column in SharePoint online

You may like follow SharePoint tutorials:

Hope this SharePoint tutorial explains, how to enable ECB menu on a custom column in SharePoint 2013?

Donwload Hub site pdf

Download SharePoint Online Tutorial PDF FREE!

Get update on Webinars, video tutorials, training courses etc.

>