Skip to content
Digital Inspiration DocsDigital Inspiration Docs

How to Send an SMS When a Google Form Is Submitted

Form Notifications can send an SMS text message each time someone submits your form. The message goes through Twilio, a service that sends text messages for other apps. You can text a fixed number, such as your own phone, or the number that the respondent typed in the form.

Use it when email is too slow or too easy to miss: an urgent repair request, an appointment confirmation, or a pick-up code.

Daniel manages 40 rental flats. Tenants report repairs through a Google Form. A burst pipe on a Sunday can’t wait for Monday’s email check. Daniel gets a text for each report, and the tenant gets one too:

Repair request #91 received for Flat 12B (Water leak). We will call you within 2 hours.

You need a Twilio account with three things:

What Where to find it
A Twilio phone number Buy one in the Twilio console. Messages are sent from this number.
Account SID On the first page of the Twilio console. It starts with AC.
Auth Token Next to the Account SID. Click to reveal it.
Twilio console with a phone number
The Twilio phone number that sends your messages.
Twilio console with the Account SID and the Auth Token
Copy the Account SID and the Auth Token.

A Twilio trial account can text only the numbers that you have verified in Twilio, and it adds a trial notice to each message. Upgrade the Twilio account to text anyone. Some countries also ask you to register the sender before you can send. Check Twilio’s rules for the countries that you text.

  1. Open the add-on in your form.

  2. Click Create and choose SMS Notification.

  3. Type a name in Notification Name, such as Text Daniel about repairs.

  4. Paste the Twilio Account SID and the Twilio Auth Token.

  5. Type your Twilio number in Sender’s Phone Number, with the plus sign and the country code, such as +12025550143.

  6. Type the number that gets the text in Recipient’s Phone Number. See the next section for the two ways.

  7. Write the text in SMS Message Body. Click the icon in the corner of the box to add a marker.

    Repair request #{{Response Number}} received for {{Flat}} ({{Problem}}). We will call you within 2 hours.
    SMS notification screen with the Twilio Account SID, the Auth Token, the sender’s and recipient’s phone numbers and the message body
    Account SID (1), Auth Token (2), sender's number (3), recipient's number (4) and message (5).
  8. Click Save.

The add-on does not check the Twilio details when you save. Submit a test response to find out whether they work.

You want to text Put this in Recipient’s Phone Number
Yourself, or a colleague The number, such as +12025550187
The person who filled in the form The marker of the phone question, such as {{Mobile number}}
A respondent who typed no country code The code, then the marker: +1{{Mobile number}}

Click the icon at the right end of the box to choose the phone question. The list shows the Short answer and Paragraph questions of the form.

One SMS notification texts one number. To text yourself and the respondent, create two SMS notifications.

Phone numbers must be in the international format: a plus sign, the country code and the number. The add-on removes spaces, brackets and hyphens, so +1 (202) 555-0187 works. It can’t add a missing country code. Ask for the format in the question’s description, or add the code in front of the marker as in the table.

  • Keep it short. One SMS holds 160 characters, or 70 if it has emoji or non-Latin letters. Twilio splits a longer text into several messages and charges for each.
  • The add-on cuts a message at 1,600 characters.
  • The message is plain text. The add-on removes HTML tags. {{All Answers}} makes a long text, so name the one or two answers that matter.
  • Say who the message is from. A text from an unknown number with no name looks like spam.

Scriptlets work in the message:

{% if {{Problem}} == "Water leak" %}URGENT {% endif %}Repair #{{Response Number}}, {{Flat}}: {{Problem}}
  • The text is sent for every response. SMS notifications have no condition sets.
  • Text people only if they agreed to get messages. Many countries require consent for text messages. Add a question such as “May we text you about this request?” and say how to opt out.
  • Before each message, the add-on checks that it can reach your Twilio account. If the SID or the token is wrong, nothing is sent and you get no warning.
  • Your Twilio token is stored with the notification, and an exported notification holds it as readable text. Anyone who can edit the form and open the add-on can see it.
  • SMS messages don’t count toward your daily email limit.
  • If the Twilio details stop working, fix or delete the SMS notification. A text message that fails is not sent again. The other notifications of that response still go out.

Work through these in order.

  1. Open the Twilio console and go to Monitor, Logs, Messaging. If the message is listed, Twilio shows why it failed.
  2. If the message is not listed, the add-on could not sign in to Twilio. Copy the Account SID and the Auth Token again. Check for a space at either end.
  3. Check that Sender’s Phone Number is a number in your Twilio account that can send SMS.
  4. Check that the recipient’s number has a plus sign and a country code.
  5. Check your Twilio balance.

The text arrives for your own number, but not for respondents

Section titled “The text arrives for your own number, but not for respondents”

Your Twilio account is in trial mode. A trial account can text only verified numbers. Upgrade the Twilio account.

Twilio reports “not a valid phone number”

Section titled “Twilio reports “not a valid phone number””

The respondent typed the number without a country code, or with letters. Add response validation to the phone question, or put the country code before the marker.

The text is longer than one SMS. Shorten it, and remove emoji and accented letters to fit 160 characters.

“Please provide a name for your notification”

Section titled ““Please provide a name for your notification””

Notification Name is empty. Type a name and click Save.