Email link in Sharepoint Lists

Anonymous
2021-06-10T16:42:03+00:00

How do I make an email address as a link in SharePoint Lists without having to see mailto: at the beginning of the email address?

Microsoft 365 and Office | SharePoint | For business | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments
{count} votes
Answer accepted by question author
  1. Anonymous
    2021-06-11T00:26:09+00:00

    Hi Beth College,

    As per your description, you need to add column(single line column) or in your Email column use a below JSON code formatting to make a email address as a link in SharePoint Lists . Go to Email column (single line column), right-click on column>Column setting>Format this column> Advance mode> and paste below code there and click "save" to check the result.

    Reference screenshot:

    Image

    JSON code:

        "$schema": "https://developer.microsoft.com/json-schemas/sp/column-formatting.schema.json", 

        "elmType": "div", 

        "children": [ 

            { 

                "elmType": "a", 

                "style": { 

                    "padding-right": "8px" 

                }, 

                "txtContent": "@currentField", 

            "attributes": { 

            "target": "_blank", 

            "href": { 

                        "operator": "+", 

                        "operands": [ 

                            "mailto:", 

                            "@currentField", 

                            "?subject=Wonder women here&body=Hey ",  

                "[$Title]", 

                            "\nJust checking, if you have saved the world?.\r\n---\r\n", 

                            "\r\nClick this link for more info. http://contoso.sharepoint.com/sites/ConferencePrep/Tasks/Prep/DispForm.aspx?ID=", 

                            "[$ID]" 

                        ] 

                    } 

                } 

            }, 

            { 

                "elmType": "a", 

                "attributes": { 

            "target":"_blank", 

                    "class": "sp-field-quickActions", 

            "href": { 

                        "operator": "+", 

                        "operands": [ 

                            "mailto:", 

                            "@currentField", 

                            "?subject=Wonder women here&body=Hey ",  

                "[$Title]", 

                            "\nJust checking, if you have saved the world?\r\n---\r\n", 

                            "\r\nClick this link for more info. http://contoso.sharepoint.com/sites/ConferencePrep/Tasks/Prep/DispForm.aspx?ID=", 

                            "[$ID]" 

                        ] 

                    } 

                } 

            } 

        ] 

    Result:

    Image

    I appreciate your patience and understanding.

    Best Regards

    Waqas Muhammad

    9 people found this answer helpful.
    0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Anonymous
    2021-06-12T08:02:31+00:00

    Hi Beth College,

    Have you checked above reply? Do you need further assistance?

    Best Regards

    Waqas Muhammad

    0 comments No comments
  2. Anonymous
    2021-06-15T15:31:43+00:00

    Thank you for your help! I actually found a simpler way, that does not require JSON code.

    Edit Column> More Options > Use Enhanced Rich Text

    Then proceed to insert the information there, using mailto: and the information.

    Thank you so much for your help though! I was really struggling to find a simple solution!

    0 comments No comments
  3. Anonymous
    2021-06-15T15:32:17+00:00

    Thank you! I figured it out, but I appreciate your direction as well!

    0 comments No comments
  4. Anonymous
    2021-06-15T21:26:26+00:00

    Hi Beth College,

    Thanks for your valuable feedback and thanks for sharing updates with us. I appreciate your kind words.

    If there is any issue related with the Office applications in the future, please feel free to post back in this community.

    We will be here for help.

    Best Regards,

    Waqas Muhammad

    1 person found this answer helpful.
    0 comments No comments