US visitors expect phone numbers in a familiar pattern: area code in parentheses, a space, then two groups separated by a dash — (123) 456-7890. A plain text box with no formatting leads to inconsistent entries like 1234567890, 123.456.7890, and 123-456-7890 mixed together in your submission inbox.

Auto Form Builder includes a dedicated Phone field with a built-in US Format: (123) 456-7890 option and Format As You Type — parentheses, spaces, and dashes are added automatically while visitors type. Set it up in the drag-and-drop form builder with no custom code.

Last updated: Last update 9 August

Why Use US Phone Formatting on Forms?

Formatted phone fields improve data quality and user experience:

  • Familiar layout — US visitors instantly recognize the (123) 456-7890 pattern
  • Consistent submissions — every entry follows the same visual structure
  • Fewer typos — auto-formatting strips non-numeric characters and applies the mask as users type
  • Mobile-friendly input — the field uses type="tel" so smartphones show the numeric keypad

Without formatting, you spend time cleaning phone data before calling leads back or importing entries into a CRM.

How to Set Up US Phone Format (123) 456-7890

Step 1: Open the Form Builder

In your WordPress admin, go to Auto Form Builder → All Forms, then open an existing form or create a new one.

Step 2: Add a Phone Field

Drag Phone from the Basic category onto the form canvas. Click the field to open its settings panel.

Step 3: Choose US Format

Under Phone Field Options, open How Should Phone Numbers Look? and select US Format: (123) 456-7890.

An example preview appears below the settings showing (123) 456-7890 so you can confirm the format before saving.

Step 4: Enable Format As You Type

Check Format As You Type. As visitors enter digits, the field automatically adds parentheses, a space, and a dash — transforming 1234567890 into (123) 456-7890 progressively while they type.

When Format As You Type is enabled, the placeholder also shows (123) 456-7890 as a visual guide. Without it, the placeholder defaults to plain digits (1234567890).

Step 5: Set Label, Required, and Placeholder

Set a clear Field Label such as Phone Number or Mobile Phone. Enable Required Field if every submission must include a phone number. You can override the auto-placeholder with custom Placeholder Text if needed.

Step 6: Save, Preview, and Publish

Save the form, preview on desktop and mobile, type a 10-digit number to confirm the formatting, then publish with the shortcode or embed code.

US Phone Field Settings Explained

How Should Phone Numbers Look?

Controls display and formatting behavior. Options include:

  • International Format — digits only, no regional mask (default)
  • US Format: (123) 456-7890 — North American layout
  • UK Format: 01234 567890 — British layout
  • Custom Format — define your own pattern using 9 for digits (e.g., (999) 999-9999)

For US-only forms, choose US Format.

Format As You Type

When enabled with US format selected, the frontend JavaScript strips non-numeric characters and applies the US mask on every keystroke. Input is capped at 10 digits for US numbers — the standard length for a US phone number without country code.

Minimum and Maximum Length

Optional digit length constraints (0–20). Use these to enforce minimum or maximum digit counts. With US Format and Format As You Type enabled, 10-digit input is handled automatically during typing.

Default Value

Pre-fill the phone field when the form loads — useful for edit forms or repopulating after a validation error elsewhere on the page.

Base Field Settings

  • Field Label, Field Name, Field Width
  • Required Field — blocks submission when empty
  • Placeholder Text — overrides the auto-generated US placeholder
  • Help Text — guidance below the field (e.g., US numbers only, no country code)
  • Conditional Logic — show or hide the phone field based on other answers

How US Phone Formatting Works on the Frontend

When a visitor types into a US-formatted phone field with Format As You Type enabled:

  1. Non-numeric characters are removed from the input
  2. After 3 digits, parentheses appear around the area code: (123
  3. After 6 digits, a space and dash are added: (123) 456-
  4. At 10 digits, the full number displays: (123) 456-7890

The field renders as type="tel" for mobile numeric keyboards and includes data-phone-format="us" and data-auto-format="true" attributes for the formatting script.

Phone Validation on Submit

Phone fields are validated when the form is submitted:

  • Server-side validation — non-numeric characters are stripped and the remaining digit count is checked (7–15 digits, matching international phone number standards)
  • Required field — empty phone fields marked required are rejected with a clear error message
  • Sanitization — submitted values are sanitized, preserving digits and common phone formatting characters

A fully formatted US number like (123) 456-7890 passes validation because it contains 10 digits after stripping punctuation.

US Format vs. Other Phone Formats

  • US Format + Format As You Type — best for US-only contact, booking, and lead forms
  • International Format — digits only, no regional mask; suited for mixed global audiences
  • UK Format — auto-formats to 01234 567890 style for British numbers
  • Custom Format — define your own mask with 9 placeholders for digits

Auto Form Builder does not include a country-code dropdown on the phone field — US format targets 10-digit domestic numbers without a +1 prefix. If you need international numbers with country codes, use International Format or Custom Format instead.

Practical US Phone Field Examples

Standard Contact Form Phone

  • Format: US Format: (123) 456-7890
  • Format As You Type: Enabled
  • Required: No
  • Label: Phone Number

Appointment Booking (Required)

  • Format: US Format
  • Format As You Type: Enabled
  • Required: Yes
  • Help text: We will call to confirm your appointment

Lead Capture with Conditional Phone

  • Format: US Format
  • Format As You Type: Enabled
  • Conditional Logic: Show phone field only when contact method is Phone

US Phone Fields on Embedded Forms

Forms embedded on non-WordPress sites use the same US phone formatting — Format As You Type, tel input type, and server-side validation. Whether placed via shortcode or embed code, phone fields behave identically everywhere.

Download Auto Form Builder — Free US Phone Formatting

Phone fields with US format, Format As You Type, validation, and conditional logic are included in the free plugin — the same plugin that gives you drag-and-drop form building, submission management, and spam protection at no cost.

Install it from the official WordPress.org directory: https://wordpress.org/plugins/auto-form-builder/

Last updated: Last update 9 August

Build forms that embed anywhere — free

Auto Form Builder lets you create multi-step forms, calculators, and lead capture forms in WordPress, then embed them on any site with a single line of code.

Install the free plugin

Frequently Asked Questions

How do I add a US phone number field to a WordPress form?

Add a Phone field in Auto Form Builder, select US Format: (123) 456-7890 under How Should Phone Numbers Look?, enable Format As You Type, and save the form.

Does Auto Form Builder auto-format phone numbers as (123) 456-7890?

Yes. Select US Format and enable Format As You Type. Parentheses, spaces, and dashes are added automatically while the visitor types, capping at 10 digits.

Can I require a phone number on my form?

Yes. Enable Required Field on the Phone field. The form blocks submission until a valid phone number is entered.

Does the US format include a country code (+1)?

No. US Format targets 10-digit domestic numbers in (123) 456-7890 layout without a +1 prefix. For international numbers, use International Format or Custom Format.

What phone formats besides US are available?

International Format (digits only), UK Format (01234 567890), and Custom Format where you define your own pattern with 9 for digits.

Is the formatted phone number stored with punctuation?

Yes. The submitted value retains formatting characters like parentheses, spaces, and dashes. Server validation checks the underlying digit count.

Does the phone field work on mobile devices?

Yes. The field uses type=”tel” which triggers the numeric keypad on smartphones and tablets.

Are US phone fields free in Auto Form Builder?

Yes. Phone fields with US formatting and Format As You Type are included in the free Auto Form Builder plugin on WordPress.org.


Leave a Reply

Your email address will not be published. Required fields are marked *