Sharepoint default Link value in list

Wadge, Deborah 21 Reputation points
2022-05-17T12:07:54.897+00:00

How do I set up a column in a Sharepoint list which has a link as the default value, that will be automatically show in the cell? To enable anyone to click on it to get to the a form that the link is set to?

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
9,560 questions
{count} votes

Accepted answer
  1. Emily Du-MSFT 41,691 Reputation points Microsoft Vendor
    2022-05-18T07:51:05.397+00:00

    @Wadge, Deborah

    I recommend that you create a single line of text column first then convert this column into hyperlink formatting.

    Please follow below steps.

    1.Create a single line of text column in the list. Then set default value for the column.

    203102-image.png

    2.Use JSON codes to format this column.

    203066-image.png

    203112-image.png

    {  
    
       "$schema": "https://developer.microsoft.com/json-schemas/sp/v2/column-formatting.schema.json",      
       "elmType": "a",      
       "txtContent": "@currentField",      
       "attributes": {      
         "target": "_blank",      
         "href": "https://learn.microsoft.com/en-us/answers/questions/852560/sharepoint-default-link-value-in-list.html"      
         }      
    }  
    

    3.Result.

    203019-image.png


    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.

    0 comments No comments

0 additional answers

Sort by: Most helpful