question

WadgeDeborah-4801 avatar image
0 Votes"
WadgeDeborah-4801 asked EmilyDu-MSFT edited

Sharepoint default Link value in list

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?

office-sharepoint-online
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

@WadgeDeborah-4801

Thank you for your question.

We are currently looking into this issue and will give you an update as soon as possible.

Thank you for your understanding and support.

0 Votes 0 ·

1 Answer

EmilyDu-MSFT avatar image
0 Votes"
EmilyDu-MSFT answered EmilyDu-MSFT edited

@WadgeDeborah-4801

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://docs.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.




image.png (17.4 KiB)
image.png (21.4 KiB)
image.png (19.7 KiB)
image.png (7.7 KiB)
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.