Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Clickable Phone numbers in Google Docs

Is there a way to make phone numbers clickable in Google Docs similar to MS Word like here?

Please note that this can be done in Google Sheets using:

=HYPERLINK("tel:1234567890", "Call Me")

I am asking for Docs.

Thank you.

like image 781
Ahmet Avatar asked Nov 26 '19 19:11

Ahmet


People also ask

How do I make a phone number clickable?

Adding an HTML Phone Number Call Link to your WebsiteHref=tel: creates the call link. This tells the browser how to use the number. “Tel: 123-456-7890 “creates the HTML phone number. The number within the quotes is the number it will call.

How do you insert a call link in Google Docs?

You can create a regular hyperlink in the cell pointing to a website which in turn redirects to the actual telephone link. To see this in action, add https://ctrlq.org/call/ before any phone number in the Google Sheet and it will turn into a clickable telephone link. Say you have the phone number in cell A1.

How do you hyperlink a phone number in a text?

Highlight the chosen text (typically a phone number or a call to action like "Call Today!") to be clickable. Click on the Insert Link icon. Make sure that "Hyperlink Type" drop-down is set to "Phone". Paste or type the phone number in the "Telephone Number" box.


2 Answers

Unfortunately, there's no direct way of doing this, but you can use Apps Script and deploy a web application that will solve your issue.

You will have to use this script using Apps Script script editor:

function doGet(e) {
  return HtmlService.createHtmlOutput("<script>window.location.href='tel:" + e.parameter.tel + "';</script>");
}

The code contains a doGet(e) function which sends an HTTP GET request and returns a new HtmlOutput object, which has as a parameter the phone number of your choice.

Afterwards, you have to deploy this script as a web application and after that, you will get a URL corresponding to it.

If you want to use it in Google Docs, you can create a link made out of the following link:

your-web-application-URL+?tel=the-phone-number-you-want .

Furthermore, here are some links for you that might be of help:

  1. Apps Script;

  2. Google Web Apps;

  3. HtmlService Class;

  4. Create a link in Google Docs.

like image 167
ale13 Avatar answered Sep 23 '22 07:09

ale13


Google Docs now supports call/telephone links by adding a hyperlink with tel followed by the phone number.

Example

  • U.S. - tel:1234567890
  • Int'l - tel:+11234567890

When clicking the link the browser displays a call prompt.

like image 30
Adam Hurwitz Avatar answered Sep 23 '22 07:09

Adam Hurwitz