How We Format Phone Numbers on Your Forms

To make the most of the data you collect via your online forms, it help to understand how FormSmarts interprets and formats telephone numbers.

Formatted Phone Number on an Online Form

FormSmarts interprets the telephone numbers individuals enter on your online forms based the person’s location, and we format them according to the formatting rules that apply in that location.

Local Phone Number

When a user enters a phone number without an international dialing code, we interpret it based on the person’s location, and format it accordingly. For example, if an individual located in the US types the phone number 2202222002, FormSmarts understands this is a valid US number and formats it as (220) 222-2002.

International Phone Number

If an individual inputs a phone number with an international dialing code, for example +447887848484, we understand this is a UK phone number (international dialing code +44) and format it as is common in the UK: +44 7887 848484.

We assume that when a person gives their phone number to an organization in a different country, they are aware of this and will provide a number with an international dialing code. Customers who collect information across borders should include a country selector on their forms, so they can get correct and useful data, even if the person types a local number.

Using Telephone Number Links in Emails and Reports

Phone numbers in email notifications, PDF documents and online are links you can directly use to call on device that support calling. This works with all phones, and also on many desktop computers.

Telephone Extension

FormSmarts supports phone number extensions. We should be able to recognize an extensions as long as it is entered in a format commonly used in at least one country, for example: 220 222 2002 extension 34, (220) 222-2002 ext. 34 or 0207 848484 x12.

The Phone Number Datatype

When you add a phone number input field to a form in the Fields tab of the form builder, make sure you select the Phone Number data type (Allowed Content setting). Do not use the Number type.

Phone numbers are not numbers because they may contain characters other than numbers. Another difference is that a leading zero is significant in a phone number, but not in a number. For example, 07887 848484 is a valid phone number in the United Kingdom. The leading zero would be lost if the field was stored as a number.

Leave a Reply

About the Form Builder Blog

The Online Form Builder Blog is published by FormSmarts, a web form service providing all you need to create a form and publish it online in minutes. FormSmarts makes it easy to build a form and embed it on your site. You can then get form submissions by email or store them on FormSmarts and download an Excel report. Learn more about the many other benefits of FormSmarts.