Telephone Number Clickable JSON "tel:@CurrentField"

Jurgen Verhelst 326 Reputation points
2020-12-26T21:36:06.883+00:00

Hi,

Yes I read that Hyperlink column formatting is limited to http, but that was a post in 2015 :)

Besides using a hyperlink column and always type in the phone number preceding with xxxxxx , is there any JSON way to put the 'tel:' part in front of it?

i tried so many things but either the value disappears in the page of SP complains it is not correct JSON :)

thanks!

SharePoint
SharePoint
A group of Microsoft Products and technologies used for sharing and managing content, knowledge, and applications.
10,052 questions
0 comments No comments
{count} votes

Accepted answer
  1. Jerry Xu-MSFT 7,936 Reputation points
    2020-12-28T01:54:38.267+00:00

    Hi, @Jurgen Verhelst ,

    For now, you can't use JSON column formatting to output links to protocols other than http://, https://, or mailto:. It is needed to use hyperlink column and start a phone number with tel: to make it work.

    Reference: https://learn.microsoft.com/en-us/sharepoint/dev/declarative-customization/column-formatting#create-clickable-actions


    If an Answer is helpful, please click "Accept Answer" and upvote it.
    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 additional answers

Sort by: Most helpful