Format Data - Available Options
- Phone Number: Convert a phone number to a different format.
- Currency: Convert a currency to a different format.
- Text to Number: Convert a string to a number.
- List Length: Get the length of a list.
1. Phone Number
The Phone Number option enables you to convert a phone number from one format to another. First, use the data selector to choose a phone number field from the available data. The phone number must be in a format recognized by the block. Then, select the desired output format from the “To Format” dropdown. The available phone number formats are:- +CNNNNNNNNNN (E164): Example: +14445556666
- +C-NNN-NNN-NNNN (RFC3966): Example: +1-444-555-6666
- +C NNN-NNN-NNNN: Example: +1 444-555-6666
- (NNN) NNN-NNNN: Example: (444) 555-6666
- NNN.NNN.NNNN: Example: 444.555.6666
- (NNN) NNN-NNNN x NNNN: Example: (444) 555-6666 x 1234
JSON
JSON
2. Currency
The Currency option allows you to reformat a cost, total, tax, or any money-related number to a different currency. You can choose from the following currency locales, which apply appropriate formatting, such as the pound sign for British pounds or a comma instead of a period for pesos:- English (United States): en_US
- Spanish (United States): es_US
- English (United Kingdom): en_GB
- Chinese (Simplified): zh_CN
- Spanish (Spain): es_ES
- German (Germany): de_DE
- French (France): fr_FR
- Russian (Russia): ru_RU
Warning:Mismatching currency locales and letter prefixes may result in incorrect formatting.
JSON
JSON
3. Text to Number
Text to Number allows you to select a string containing a number and convert it to an integer. Use the data selector to choose a field containing a number in text format. The output will be an integer. Example output:JSON
4. List Length
List Length calculates the length of a list. Instead of using the “Value” field like most options, this option has a “List to count length” field. Use the data selector to choose an array from the available data. Example output:JSON