Phone field
What it does
A Phone field is a box for a phone number with a country list in front of it. You find it in the builder's left panel, in the Text Input group, and add it by dragging it onto the form, as described in Adding fields and sections.
The box starts with a country flag and its dialling code, such as +1, and shows an example number for that country until the visitor types. The visitor clicks the flag to pick another country from a list with a search box.

The field saves the number with its country code and without spaces: a visitor in the United States who types
201-555-0142 sends +12015550142. That's the form you see on the submission page, in the submission list, in
an export and in notification emails.
When to use
- Use Phone when you want to call or text the visitor back, especially if you sell abroad: the country code is always part of the number.
- Use a Text field when the number doesn't follow a country's phone plan, such as an internal extension. See Text field.
Settings
Go to Content → WebForms → Manage Forms, click the form's name, then click Form Builder. Click the field on the form. Its settings show in the right panel, on the tabs General, Validation and Appearance. You'll change these settings most often:
- Initial Country is the country the field starts with. On Auto, the default for a new field, the visitor's browser asks an outside service, ipinfo.io, for the visitor's country by their IP address. To avoid that service, choose your main country.
- Preferred Countries puts the countries you pick at the top of the list. The rest follow in alphabetical order.
- Limit Country Selection shows only the countries you pick. Leave it empty for all countries.
- Auto Placeholder shows an example number for the chosen country inside the empty box. It's on for a new field.
- Default Value fills the box when the form opens. Write it with the country code, such as
+12015550100: the field then picks the matching country. - Pre-fill with Customer Data set to Telephone fills the box with the phone number of a signed-in customer's default billing address.
The table below lists every setting. Visitors see a change after you click Publish Changes in the builder's top bar.
All settings of this field
| Setting | Where in the panel | Values | Translatable |
|---|---|---|---|
| Enable Field | General → Basic | On or off | No |
| Label (required) | General → Basic | Text | Yes |
| Field Code | General → Basic | Text | No |
| Required | General → Basic | On or off | No |
| Required Error Message | General → Basic | Text | Yes |
| Help Text | General → Basic | Formatted text | Yes |
| Tooltip | General → Basic | Formatted text | Yes |
| Placeholder | General → Field Settings | Text | Yes |
| Default Value | General → Field Settings | Text | Yes |
| Pre-fill with Customer Data | General → Field Settings | Full name, Customer / First name, Customer / Last name, Email, Billing Address / First name, Billing Address / Last name, Company, City, Street, Country 2 symbol code, Region, Postcode, Telephone, Fax | No |
| Preferred Countries | General → Field Settings | A list of 249 options | No |
| Limit Country Selection | General → Field Settings | A list of 249 options | No |
| Initial Country | General → Field Settings | A list of 249 options | No |
| Hide in Submissions | General → Submission Display | On or off | No |
| Allow in Staff Email Subject | General → Submission Display | On or off | No |
| Submission Label | General → Submission Display | Text | Yes |
| Personal Data | General → Privacy | By field type — Personal data, Not personal, Personal data | No |
| Auto Placeholder | General → Advanced | On or off | No |
| Browser Autocomplete | General → Advanced | Text | No |
| Unique Value | Validation → Unique | On or off | No |
| Error Message | Validation → Unique | Text | Yes |
| Minimum Length | Validation → Length | Number | No |
| Error Message | Validation → Length | Text | Yes |
| Maximum Length | Validation → Length | Number | No |
| Error Message | Validation → Length | Text | Yes |
| Pattern | Validation → Pattern | Text | No |
| Error Message | Validation → Pattern | Text | Yes |
| Desktop | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Tablet | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Mobile | Appearance → Layout | Width: Full (1/1), Half (1/2), Third (1/3), Quarter (1/4), Fifth (1/5), Sixth (1/6), 2/3, 3/4, 2/5, 3/5, 4/5, 5/6; New row: on or off | No |
| Show Label | Appearance → Style | On or off | No |
| Help Text Position | Appearance → Style | Below input, Above input | No |
| Container Classes | Appearance → CSS | Text | No |
| Input Classes | Appearance → CSS | Text | No |
| Custom Attributes | Appearance → Advanced | Text | No |
| Inline Style | Appearance → Advanced | Text | No |
Validation
The field checks the number for the chosen country when the visitor clicks Submit:
| Check | What the visitor sees when it fails |
|---|---|
| Number, always on | "Incorrect number." under the box. A number too short or too long for the country, such as 12, fails. |
| Required | "This is a required field." under the box, or your Required Error Message. |
The store checks the number again when the form arrives and refuses a malformed value, such as one with letters, with "Invalid number.", even if the visitor got past the browser.
Minimum Length, Maximum Length and Pattern on the Validation tab check the number as it shows in the
box, without the country code, for example 201-555-0142. A Pattern such as ^\+44 never matches, because the
box doesn't hold the +44. To accept only some countries, use Limit Country Selection instead.
Logic
- Show or hide this field: yes. A rule that starts from a field with options, such as a Select, can show or hide a Phone field. See Show or hide fields and sections.
- Start a rule: no. Only fields with options can start a rule. A Logic tab appears on a Phone field only once a rule shows or hides it, and lists that rule.
- Email conditions: yes, with Is, Is Not, Contains, Starts With and Ends With. Write the
value the way the number is saved, with the country code and without spaces: Starts With
+44matches saved numbers that begin with the United Kingdom code.
Limits
- Initial Country on Auto sends the visitor's IP address to ipinfo.io when the form opens. If your privacy policy lists the services your store uses, add it there or pick a country.
- The check tells whether a number is possible for the country, not whether it exists or belongs to the visitor.
- Staff see the number as it was saved, such as
+12015550142, without spaces or dashes.
Troubleshooting
- The field looks unstyled after an update. The store's static files may not have been deployed again. See Form looks unstyled or broken.
- A visitor says the form rejects a correct number. Check the flag in front of the box: a number from another country fails until the visitor picks that country. With Limit Country Selection on, their country may be missing from the list.
- The field starts with the wrong country. Initial Country is on Auto and guesses from the visitor's connection. Pick your main country instead.
- A condition on the phone number never matches. Compare with the saved value, such as
+1201rather than(201). See Condition operators.
What's next
- Text field: a plain box for other kinds of numbers.
- Fill fields from the customer's account: what Pre-fill with Customer Data can fill in.
- Recipients and conditions: send an email only for some answers, such as numbers from one country.