Forum Discussion

Radiant_Meerc's avatar
Radiant_Meerc
Copper Contributor
Oct 13, 2023
Solved

Lit sharepoint - Retrieving user properties from person field

Good Morning

 

I managed to link an email column with the user column on a sharepoint list. I can no longer do this.

In the working list,in the view display, it says "linked to an element using the Edit menu"

 

 

 

above the list which works with a link by displaying the user's first name and surname and the email address in the other column.

 

I would like to have the same scheme in a new list. But I can't do it. I just don't get it. Maybe it's a feature that's disappeared?

  • Radiant_Meerc 

     

    In SharePoint Online, "linked to an element using the Edit menu" is attached with SharePoint default "Title" column only. I don't think it is possible to change it to other/custom columns in SharePoint modern experience as there are no options available for it using SharePoint out of the box features.

     

    If you want to show user profile properties in modern experience, you can create and use Person or Group column: 

    When you add users in these columns, it shows like this: 

    And when you hover on the user name, it shows person card with related user profile properties like: 


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

4 Replies

  • Radiant_Meerc 

     

    Previously in SharePoint server versions and classic experience, it was possible using to change it to other columns using SharePoint designer or PowerShell.

     

    Check below threads and see if it helps:

    1. Display the SharePoint context menu in list items on another column instead of Title column? 
    2. Change Title (linked to item with edit menu) to different column 
    3. Attach ECB menu / Context menu to other than Title field in SharePoint list view 

    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    • Radiant_Meerc's avatar
      Radiant_Meerc
      Copper Contributor
      Finally, I chose to add a code in the format :
      {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "div",
      "style": {
      "display": "block"
      },
      "children": [
      {
      "elmType": "span",
      "txtContent": "[$Borrower.email]"
      }
      ]
      }

      Thanks ofr you help!
  • Radiant_Meerc 

     

    In SharePoint Online, "linked to an element using the Edit menu" is attached with SharePoint default "Title" column only. I don't think it is possible to change it to other/custom columns in SharePoint modern experience as there are no options available for it using SharePoint out of the box features.

     

    If you want to show user profile properties in modern experience, you can create and use Person or Group column: 

    When you add users in these columns, it shows like this: 

    And when you hover on the user name, it shows person card with related user profile properties like: 


    Please click Mark as Best Response & Like if my post helped you to solve your issue. This will help others to find the correct solution easily. It also closes the item. If the post was useful in other ways, please consider giving it Like.

    • Radiant_Meerc's avatar
      Radiant_Meerc
      Copper Contributor
      finally understood that it was only the title column that was preconfigured as such.
      Thanks

Resources