🎉 Celebrate with 10% OFF on All Products! Use Code: GFEX10 Or Buy Any 2+ Items for 30% OFF with Code: GFEX30!
215 October 27, 2026

Gravity Forms Twilio Integration: Send an SMS When a Form Is Submitted

GravityExtra
Gravity Forms Twilio Integration: Send an SMS When a Form Is Submitted

The Gravity Forms Twilio integration from GravityExtra now sends SMS text messages. Version 1.1.0, released on October 27, 2026, lets a feed send a plain text message through Twilio the moment a form is submitted. Until now a feed could place a voice call or send a WhatsApp message. You can see the full feature list on the Gravity Forms Twilio integration page and every setting in the Twilio add-on documentation.

This guide explains what the add-on does, how to send an SMS when a form is submitted, how to use a Twilio Messaging Service, how to send a copy to a colleague, which phone number formats are accepted, how to read the result in the entry notes and how to choose the voice for voice calls.

What the Twilio Add-On Does

The add-on connects Gravity Forms with Twilio. When a visitor submits a form, a feed can send an SMS, send a WhatsApp message or start a voice call to the phone number from the form. You write the message with merge tags, so each text carries the visitor’s own details, and the result of every send is saved as a note on the entry. You can create several feeds on one form and choose the message type of each feed: SMS, WhatsApp or Voice.

  • SMS through the Twilio Messages API, with the number from your form as the recipient (new in 1.1.0).
  • Messaging Service SID as the sender instead of a single number (new in 1.1.0).
  • A copy of the SMS to a fixed number, such as a staff member (new in 1.1.0).
  • Voice selector for voice calls, with Alice as the default (new in 1.1.0).
  • Conditional logic to control when each feed runs.
  • Entry notes with the message SID on success, or the Twilio error code and message on failure.

Requirements

You need Gravity Forms 2.5 or newer and a Twilio account with an Account SID, an Auth Token and either a Twilio number or a Messaging Service. Version 1.1.0 was tested on Gravity Forms 2.9.8 with PHP 7.4 and on Gravity Forms 3.1.2 with PHP 8.3. In those tests the Twilio API was simulated, and Twilio’s own limits, charges and delivery rules apply to your account, so start with a test submission to your own phone.

How to Send an SMS When a Form Is Submitted

  1. Enter your Twilio credentials. Install and activate the add-on, then open Forms, Settings, Twilio. Enter your Account SID, Auth Token and the From number, which is the Twilio number you send from, in international format with a plus sign, for example +14155550123.
  2. Add a feed. Open your form, go to Settings, then Twilio, and click Add New. Give the feed a name.
  3. Choose the module. Set Twilio Module to SMS. The other choices are Voice and WhatsApp.
  4. Pick the phone field. In Recipient Phone Field, choose the form field that holds the visitor’s number.
  5. Write the message. In Message Body, type the text of the SMS. Merge tags work, so Hi {Name:3}, thanks for your order. We will be in touch soon. becomes a message with the visitor’s own name.
  6. Save and test. Save the feed, submit the form once and open the entry. The note shows the message SID, or the Twilio error code and message if something is wrong.

This is how the SMS feed looks in the form settings:

Twilio SMS feed settings in Gravity Forms

Use a Messaging Service, Copy a Colleague and Add Conditions

Messaging Service SID

Paste a Twilio Messaging Service SID in the optional Messaging Service SID field. It starts with MG followed by 32 characters. When it is set, the SMS is sent through that service and the From number in Settings, Twilio is not used. A value in the wrong format is not sent, and an entry note says so.

Also send this SMS to

Add one fixed number in international format, for example +14155550123, in the Also send this SMS to field. It receives a copy of the same SMS. This suits the person who handles the lead. The copy number is fixed text, not a form field. If the copy number is not valid, the main SMS is still sent and a second note says the copy was not sent.

Conditional logic

Tick Enable Condition at the bottom of the feed to send only for some submissions. For example, send the SMS only when a Preferred contact field is set to Text message. Entries that do not match are still saved in Gravity Forms.

Phone Number Rules

Twilio needs numbers in international format. The add-on accepts a plus sign and the country code, or a number that starts with 00, which is read as a plus sign. Spaces, brackets and dashes are removed. A number without a plus sign or 00 is not sent, and the entry note says that the phone number must include the country code. That way a message never goes to the wrong country. The same rules apply to the copy number.

Tip: use a phone field that collects the country code, or add a short instruction under the field asking visitors to type the number with the country code.

Read the Result in the Entry Notes

Each send adds a note to the entry:

  • Success. The note shows the message SID. This means Twilio accepted the request; delivery to the handset is up to Twilio and the carriers.
  • Twilio refused the message. The note shows the HTTP status, the Twilio error code and the Twilio message, for example error 21610, which means the recipient has unsubscribed.
  • Connection problem. The note shows the error text.
  • The copy. The copy to the fixed number has its own note, marked SMS (copy).

Choose the Voice for Voice Calls

Voice feeds now have a Voice setting that selects the voice that reads the message. The default is Alice, the legacy voice that earlier versions used, so existing feeds sound exactly as before. The other choices are Amazon Polly voices offered by Twilio. If a stored voice is not in the list, the call uses Alice.

Twilio voice feed settings in Gravity Forms

WhatsApp and Voice Fixes in Version 1.0.2

On the same day, version 1.0.2 fixed a problem with WhatsApp messages and voice calls: they were sent to the phone number without the leading plus sign, so Twilio refused them with error 21211. Numbers are now sent in international format, and a number without a country code is reported in the entry notes instead of being sent. It also fixed the wrong service name in the feed list column and the module tooltip. Version 1.0.1 (October 26, 2026) added license key settings and automatic updates from gravityextra.com. The add-on keeps working without a license key; the key only turns updates on.

Limits to Know About

  • One recipient field per feed. Add more feeds for more messages.
  • The copy number is fixed text, not a form field.
  • Twilio’s own limits and charges apply, such as message length, country rules and trial accounts.

Troubleshooting

The note says the phone number must include the country code

The visitor typed a number without a plus sign or 00. Ask for the country code or use a phone field that adds it.

Twilio error 21211

The recipient number is not valid.

Twilio error 21610

The recipient has unsubscribed from messages from your number.

Twilio error 20003

Check the Account SID and Auth Token in Forms, Settings, Twilio. Twilio’s own error list explains other codes.

Frequently Asked Questions

Can I send SMS, not only WhatsApp and voice?

Yes. Choose SMS as the message type of a feed. The SMS is sent through the Twilio Messages API with the number from your form as the recipient.

Which phone number format is accepted?

International format: a plus sign and the country code, for example +14155550123, or a number starting with 00. A number without a country code is not sent.

Can I use a Messaging Service instead of a From number?

Yes. Enter the Messaging Service SID, which starts with MG, on the SMS feed.

Can only some submissions send an SMS?

Yes. Use the feed’s conditional logic.

Will my existing feeds change?

No. Existing voice and WhatsApp feeds behave as before, and voice calls keep the Alice voice unless you choose another one.

Get the Gravity Forms Twilio Add-On

Ready to text your visitors from a form? See the plans on the Gravity Forms Twilio integration page and follow the Twilio documentation to set up your first feed. You can also browse the full list of Gravity Forms add-ons.

0
0
Your Cart
Your cart is emptyReturn to Shop
🔥 FREQUENTLY BOUGHT TOGETHER
Complete Combo & Save 40%!
ITEM IN YOUR CART
Gravity Forms Klaviyo Add-on
$39.00/yr
+
🎁 RECOMMENDED ADD-ON SAVE 40% OFF
Original Price: $39.00/yr
Bundle Special Price: $23.40/yr