Formatting Phone Fields

Introduction

Note: Phone field formatting is supported in S-Docs version 4.450+

S-Docs provides a number of different options for formatting Salesforce phone fields in your documents.

You can use any of the formatting options described in the Syntax section of this article. Simply replace the formatting shown below with your desired formatting.

For merge fields, place your formatting within the curly braces after the field syntax, as shown below.

{{!Contact.mobilephone ###-###-####}}

For related lists, use the format-number column attribute to add your phone field formatting, as shown below.

<column format-number="###-###-####">Contact.mobilephone</column>

Syntax

S-Docs accepts the following phone field formatting:

For 10-Digit Phone Numbers

###-###-####

(###)###-####

(###) ###-####

(###)-###-####

###.###.####

### ### ####

## ## ## ## ##

For 11-13 Digit Phone Numbers

+### ###-###-####

+### (###)###-####

+### (###) ###-####

+### (###)-###-####

+### ###.###.####

+### ### ### ####
Info
You can use the formatting for 11-13 digit numbers with 10-digit phone number fields to add a +1 to the beginning of the number.

Considerations

  • If your phone field is populated with an 11-13 digit number, but the formatting doesn't include +### at the beginning, it will be merged into your document in its original formatting.
  • Only 10-13-digit numbers are supported. If your phone field is populated with a number that has less than 10 digits or greater than 13 digits, it will be merged into your document in its original formatting.

Tags: , ,

Was this helpful?