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

How to Check Phone Numbers in Gravity Forms: Line Type, Carrier and Blocking VoIP Numbers

GravityExtra
How to Check Phone Numbers in Gravity Forms: Line Type, Carrier and Blocking VoIP Numbers

A phone number field collects a lot of nonsense. Visitors type five digits, a number from the wrong country, a number that nobody owns, or an internet number they can drop in a minute. The sales team then calls dead numbers, text messages bounce and the lead report looks better than the real pipeline. This guide shows how to check every phone number when a Gravity Forms form is submitted, with your own Twilio Lookup, Numverify or Abstract account, how to keep the line type and the carrier with the entry, and how to refuse the numbers you do not want without punishing the visitor when the lookup service has a bad day.

Format, ownership and reality are three different questions

When people say they want to validate a phone number they usually mean one of three things, and each one needs a different tool.

  • Does it look like a phone number? This is about format. An input mask can keep digits tidy, show the country flag and refuse letters while the visitor types. It runs in the browser and it is free to run, but it cannot tell whether the number exists.
  • Does the visitor hold this number? This is about ownership. Only a one-time code sent to the number can prove it. It costs a text message and a step for the visitor.
  • Is it a real number, and what kind of line is it? This is about reality. A carrier database knows whether a number is assigned, whether it is a mobile, a landline or an internet line, and which carrier holds it.

This guide is about the third question. It is the cheapest of the three to add, because the visitor sees nothing extra and the check happens on your server in a moment. It also pairs well with the other two: a mask first, a lookup on submit, a code last if you really need proof.

Why line type and carrier matter

A valid number is not always a useful one. The line type changes what you can do with it. A mobile number can receive a text message. A landline cannot. A VoIP number, an internet number from a service that gives them away by the dozen, is cheap to create and cheap to throw away, so it shows up in fake sign-ups, repeated trials and spam leads.

The carrier is useful for routing and for reports. If you offer a call back, you may want to know whether the number is a mobile at all. If you run a trial, you may want to refuse numbers that are not tied to a real subscriber. And the plain valid or invalid answer already saves a lot of wasted effort, because five-digit entries and invented numbers are refused while the visitor is still on the page and can fix the typo.

What you need

  • Gravity Forms 2.9 or newer and a form with a Phone field.
  • An account with one provider. Twilio Lookup version 2 with Line Type Intelligence, Numverify, or Abstract Phone Validation version 1.
  • The Gravity Forms Phone Lookup Premium Add-on from GravityExtra.

Step 1: choose a provider

All three providers answer the same basic question, whether the number is valid, and return a line type and a carrier name when your plan includes them. They differ in what they report and how they charge, so check the current documentation and prices before you pick.

  • Twilio reports the line type with fine detail, including fixed and non-fixed VoIP, and the carrier name. It is the one to choose if blocking VoIP matters most.
  • Numverify has a small free plan that is handy for a test, and a paid plan for HTTPS access with a dashboard key. If you buy through the APILayer Marketplace instead, the key is used over HTTPS on every plan.
  • Abstract Phone Validation lists landline, mobile, satellite, premium, paging, special and toll-free types. Its documentation does not list a VoIP type, so it is better for validity and for landline versus mobile than for VoIP blocking.

The add-on never charges anything on top. Each real lookup uses one lookup of your own account.

Step 2: save the keys

Install the add-on, open Forms → Settings → Phone Lookup, activate your license, pick the provider and paste its keys. The secrets are encrypted before they are saved and are never shown again, so nobody who opens the settings page can copy them.

The Phone Lookup settings screen in Gravity Forms: the license box, the lookup account section with the provider choice and the encrypted key fields, and the behaviour section with the fail-open choice, default country code, remember time and hourly limit
The add-on settings: your own provider account, keys stored encrypted, and what to do when the lookup is not available.

Two settings here deserve a moment of thought. The first is what to do when the lookup is not available. The default lets the form through, and I recommend keeping it. A provider can be down, a quota can run out and a key can be rotated by mistake. If your form depends on the provider being up, then every outage costs you sign-ups. With the default, the form works, the entry gets a note that explains why it was not checked, and you can look at the notes later.

The second is how long to remember an answer. Phone numbers are looked up again whenever somebody retypes the same number, for example after a validation error elsewhere on the form. Remembering an answer for a day removes those repeats and keeps your quota for new numbers.

Step 3: turn it on for the form

Open the form, go to Settings → Phone Lookup, switch the check on and choose the phone field. Then decide what to block, if anything.

The Phone Lookup tab of a form: the phone field, the options to block invalid, VoIP and landline numbers, the messages and the five fields that receive the line type, carrier, valid flag, country and international number
Per form: which field to check, which numbers to block, and where to save the answer.

My advice is to start with nothing blocked, run the form for a week and read the answers that come back in the entries. You will see how many numbers are invalid, how many are VoIP and how many are landlines. Then tick the boxes that match your business, one at a time.

Step 4: write kind messages

A refused visitor should know what to do. The default messages are short and plain, and you can replace them: Please enter a mobile number so that we can send you a text. If you refuse landlines, say why. If you refuse VoIP numbers, tell people to use the number of their phone plan. A message that explains the reason loses fewer good leads than one that only says the number is invalid.

Step 5: keep the answer with the entry

Pick fields to receive the answer: line type, carrier, valid, country and the number in international format. They are filled when the entry is saved, before notifications and feeds run, which makes them useful in the next step of your workflow. A hidden field with the line type can feed conditional logic in a notification, so a mobile number sends a text message reminder and a landline sends an email. A carrier in a hidden field can go to your CRM. The number in international format is the one your dialer wants.

You can also use merge tags in notifications and confirmations: the line type, the carrier, the valid flag, the country and a status of checked, invalid or error. A sales notification that says Mobile, carrier name, country tells the person who calls what to expect before they dial.

A Gravity Forms entry screen with the mapped fields filled with a line type and a carrier, and a note that says the number is valid, with its line type, carrier and country
The entry keeps the answer: the mapped fields and a note with the masked number.

Step 6: protect your quota

A lookup form is a target for bots, and every lookup costs money. The add-on protects your quota in three ways. A typed value that cannot be a phone number is refused without a request. An answer is remembered for the days you set, so the same number is not asked twice. And a limit of new lookups per visitor and hour stops one source from using the whole month in an afternoon. When the limit is reached, the form follows your fail-open setting and the entry note says so.

What if the provider is down

Every failure turns into a note on the entry. A refused key, a quota that is used up, a rate limit, a server error, a timeout or an answer that makes no sense: none of them shows a technical message to the visitor, and none of them carries a key in its text. With the default setting the form goes through and the entry shows that it was not checked. If you prefer the opposite, you can ask the add-on to block the form and show a polite request to try again. Pick that only when a checked number really matters more than the sign-up.

Ideas for using the answer

  • Send a text reminder only to mobile numbers, and an email to everyone else.
  • Route landline numbers to a call back queue and mobile numbers to a messaging flow.
  • Refuse VoIP numbers on a free trial form, so one person cannot start twenty trials.
  • Mark leads with a mobile number as ready to call, and keep the others for email follow-up.
  • Send the international number and the carrier to your CRM, so nobody has to guess the country code.

A word about privacy

A phone number is personal data. Tell people on the form that the number is checked, and read the terms of the provider you choose. The add-on keeps its own part small: the number goes to the provider you chose and to nobody else, requests use HTTPS, keys are encrypted, the entry note shows only the last four digits, and an answer is remembered in a temporary option that expires. Uninstalling removes the settings and the remembered answers.

Get started

The Gravity Forms Phone Lookup Premium Add-on checks the phone number on submit with your own Twilio Lookup, Numverify or Abstract account, saves the line type and the carrier into fields and merge tags, and can refuse invalid, VoIP or landline numbers, with a fail-open setting so that the form always works. See the features, the price and the setup guide on the add-on page.

See the Phone Lookup add-on

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