Share via

SharePoint - The link should be behind a text

Martin, Heidi (SE GP T SP PS) 571 Reputation points
2023-12-08T05:34:39.7033333+00:00

Good morning!

Is it possible to insert a link behind text in a text column in SharePoint?

Thank you!User's image

Microsoft 365 and Office | SharePoint | For business | Windows
0 comments No comments

Answer accepted by question author

  1. Jones, Christopher 105 Reputation points
    2023-12-08T06:22:29.67+00:00

    I don't think there's a way to get exactly what you want, but I think you can add a hyperlink column to your list to display the text as part of the link.

    Was this answer helpful?


2 additional answers

Sort by: Most helpful
  1. Martin, Heidi (SE GP T SP PS) 571 Reputation points
    2023-12-08T08:48:09.4866667+00:00

    @Ling Zhou_MSFT

    That's great! However, in my case, the text and link keep changing. How can this be modified? I would like to post this content to Viva Engage via a workflow, but when I try, it doesn't include the column I need. What could be the reason for this?

    The goal is to post content from a SharePoint list to Viva Engage via a workflow. And the desire is to be able to embed links within text. It looks more attractive than a fully written out link.

    Was this answer helpful?


  2. Ling Zhou_MSFT 23,690 Reputation points Microsoft External Staff
    2023-12-08T08:32:30.86+00:00

    Hi @Martin, Heidi (SE GP T SP PS),

    Thank you for posting in this community.

    Please try use this JSON to format your column.

    1.Column settings >Format this column >Advanced mode.

    2.Please replace your href.

    {
      "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",
      "elmType": "div",
      "children": [
        {
          "elmType": "span",
          "txtContent": "We have add a"
        },
        {
          "elmType": "span",
          "children": [
            {
              "elmType": "a",
              "txtContent": "vedio",
              "style": {
                "margin-left": "2px",
                "margin-right": "2px"
              },
              "attributes": {
                "target": "_blank",
                "href": "https://XXXXXXXX"
              }
            }
          ]
        },
        {
          "elmType": "span",
          "txtContent": "showcasing our portfolio"
        }
      ]
    }
    

    3.Here is my test result. Hyperlinks will open in a new window.

    User's image


    If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    Was this answer helpful?

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.