Skip to content
beprintlearn – Home

Formatting phone numbers automatically

The phone number formats itself

However it's typed – the number appears in one consistent format on the card.

1:26 min · Published on 8 November 2026

What it's about

  • Phone number formatting is a special field option with twelve formats, most of them for European numbers.
  • For U.S. numbers only the Custom Format with the pattern (XXX) XXX-XXXX works.
  • The formatting happens on the card; the input field keeps what was typed.
  • The pattern doesn't know country codes: +1 617 555 0142 becomes +(161) 755-5014 2.
Transcript

Click a timestamp to jump to that point in the video.

  1. The buyer types the number in one go. On the card, it still shows up in the familiar format.
  2. You don't need a rule in the box content for this. It's a special field option on the field Phone, with twelve ready-made formats. Most of them are built for European numbers. For U.S. numbers, use the free format with a pattern: an X for every digit.
  3. The formatting works on the card. In the input field, the number stays exactly as it was typed.
  4. In the back end, you open the Special Field Options of the print template, choose the variable Phone and search for phone number. Under Phone number formatting, set Enable function to yes. Then the rule: Custom Format, pattern-based. And the Formatting Pattern: X X X in parentheses, then X X X, hyphen, X X X X.
  5. One limit: the pattern counts digits from the left. It doesn't know country codes. If the buyer types plus one in front, the one moves into the area code, and the last digit is left over. So test your format with the numbers your buyers really type.
  6. Here's how it looks live.
  7. Typed any way you like – printed in one format.

Also in: Rules & automationAdvanced course: print templates