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.
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.
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.
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.
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:
Apps Script;
Google Web Apps;
HtmlService Class;
Create a link in Google Docs.
Google Docs now supports call/telephone links by adding a hyperlink with tel
followed by the phone number.
Example
tel:1234567890
tel:+11234567890
When clicking the link the browser displays a call prompt.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With