2

As we know, when we create SharePoint List it have a "Title" default column, but is not a simple column, it have "Title (linked to item with edit menu)", So we can clic on ... and click edit

enter image description here

I want to know if it´s possible to attach that edit menu to another column. Regards

4
  • If you just want Edit Item link and not the full ECB Menu, you can use CSR to provide a custom link that points to the edit item. Commented Sep 5, 2017 at 19:14
  • But how can I use it into another column, because I´m planning to hide "Title" column @RohitWaghela
    – Ledwing
    Commented Sep 5, 2017 at 19:15
  • Always has been insane that SharePoint couldn't allow this easily...
    – mannaggia
    Commented Sep 5, 2017 at 19:36
  • @Ledwing Please check the answer I have posted. Commented Sep 5, 2017 at 19:36

2 Answers 2

2

Follow below steps :

  1. Open your AllItems View In SharePoint designer in advanced mode.

  2. search for the <ViewFields> tag in your XmlDefinition.

  3. And within this tag, add the ListItemMenu="TRUE" to the field in front of which you want to show the ECB Menu/Context menu. (Refer below screenshot. Here I am adding ECB Menu/Context menu in front of field name test)

enter image description here

4. OutPut

enter image description here

5. Now you can remove your Title field

3
  • I think such approach doesnt work in Sharepoint online modern experience, does it ?
    – Alberto S.
    Commented Nov 29, 2019 at 10:18
  • 1
    @Alberto I have not tested it on Modern experience. Once I will do, I will share the details and update the answer accordingly :) Commented Nov 29, 2019 at 12:35
  • @RohitWaghela, can you please help me with this sharepoint.stackexchange.com/questions/280467/… Commented May 17, 2020 at 6:13
1

I've often found that if there is another column where I'd like to have the ECB menu appear, it's normally because it's the primary column for that particular list.

If that's the case, changing the 'Column Name' (Display name) of your 'Title' field works well. You do this via the following steps:

  1. Go to your List Settings
  2. Click 'Title' under Columns
  3. Change 'Column name' to your desired name

In this scenario, you don't create your other column, as you're just repurposing your 'Title' field to reflect the column you associate as the primary identifier of your list items.

This is a good way to re-purpose the built-in functionality you get with the 'Title' field, while still allowing you to display the column with your unique name. Also, you won't have to make any changes to views, etc... in order to take advantage of the built-in functionality that the 'Title' field offers.

This may not meet your needs each time, but I thought I'd share this answer, since it often will do the trick.

enter image description here

Cheers, Matt

2
  • If you have a simple text column it can be solution, in my case my list haven´t a text column, just choice, calculated and Groyp columns. But it works for another users who want to change name of Title column
    – Ledwing
    Commented Sep 5, 2017 at 20:53
  • In those cases I sometimes set up a workflow that runs on add and update that copies the other column value into the Title field. I also then hide the Title field on the NewForm and EditForm pages. Kinda works ok. Sometimes there is a delay in the workflow running and the list view that NewForm or EditForm redirects to does not have the value in the Title field yet.
    – mannaggia
    Commented Sep 5, 2017 at 23:14

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.