Tel Hyperlink in SharePoint


  • Hi,

    This is something I've been trying to do for quite a while now. I've found no definitive answer having seen other similar questions asked. One example here -

    Although we are using Lync this isn't relevant to this particular question. What I'd like to achieve is click-to-dial links in SharePoint using the format "tel:+447825555123". This works perfectly fine in regular HTML. When you try to add this as a link in SharePoint you get the following validation error:

    So I used SharePoint designer to create the hyperlink which worked fine as there isn't the same validation in place. Once the page was saved back I checked the underlying HTML and SharePoint strips the link out just leaving <a>+447825555123</a> instead of what is should be <a href="tel:+447825555123">+447825555123</a>. I tried setting the link by editing the HTML and SharePoint strips it just the same.

    Does anyone know a way around this? The best solution I think would be to edit the SharePoint validation so can add tel links through the regular edit option. I'm not sure how this is achieved though. This is in a SharePoint 2010 wiki btw.



    2012年5月10日 10:51



  • I don't think you'll get an easy solution for this. I tried to get Sharepoint working with another custom link we're using but sharepoint always damages the link. As I read this is for security reasons.
    2012年5月10日 11:28
  • Hi Peter,

    I've not tested this but you could try creating your markup in a text file, save it to a doc library in SharePoint then link to it with a Content Editor web part.


    Paul Barton | SharePoint Consultant | MCITP SharePoint 2010 Administration | MCTS WSS 3.0 / MOSS 2007 | My Blog | Follow Me on Twitter

    2012年5月10日 15:05
  • I've tried to modify this method but adapted it for a "tel:" link to no avail -

    Paul - I don't quite follow how that would be done. Any guides online I can follow?



    2012年5月11日 8:56
  • Hi Pete,

    I managed to test this out yesterday on my dev box, here's what I did:

    1. Open notepad and create the tel link <a href="tel:0123456789">My Number</a>, save as text file (in my case tel.txt).

    2. Open SharePoint and navigate to a doc library, upload text file from step 1.

    3. Open a page and get it in edit mode, drop in a content editor web part, edit webpart settings and you will get a input box to enter the path to content.

    4. Enter /%doclibname%/tel.txt, change the chrome of the web part so you only see the link, not the webpart title etc.

    5. Save the page and you now have your tel link without SharePoint messing with your markup.



    Paul Barton | SharePoint Consultant | MCITP SharePoint 2010 Administration | MCTS WSS 3.0 / MOSS 2007 | My Blog | Follow Me on Twitter

    2012年5月11日 9:04
  • Create your own custom field type for this:

    Kind regards,
    Margriet Bruggeman

    Lois & Clark IT Services
    web site:

    2012年5月11日 9:17
  •  I am not sure why you using hyperlink but if you use the correct format and you have MS Lync it will automatically connect once you click on it. Try using a regular column and give phone # in this format 

    2012年5月11日 23:03
  • Here's how to do it in jQuery: 

        var pattern = /^\(*\+*[1-9]{0,3}\)*-*[1-9]{0,3}[-. /]*\(*[2-9]\d{2}\)*[-. /]*\d{3}[-. /]*\d{4} *e*x*t*\.* *\d{0,4}$/;
        var reg = new RegExp(pattern);
          var html = $(this).html();
            if(reg.test(html) === true){
                var href = 'tel:' + html.replace(/\D+/g, '');
                $(this).attr('href', href);

    2015年10月8日 19:54
  • I found adding a script editor webpart and the standard tel hyperlink worked inside the script editor.
    2017年7月4日 9:06