question

ez-Jurgen avatar image
0 Votes"
ez-Jurgen asked ez-Jurgen commented

Telephone Number Clickable JSON "tel:@CurrentField"

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 tel: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!

office-sharepoint-online
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.

1 Answer

JerryXu-MSFT avatar image
0 Votes"
JerryXu-MSFT answered ez-Jurgen commented

Hi, @ez-Jurgen,

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

· 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.

Thanks Jerry!

0 Votes 0 ·